Release 4 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ) in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Provenance-example-sig.ttl

Example Provenance/signature (Turtle)

Maturity Level : N/A
Responsible Owner: Security Work Group Standards Status : Informative Compartments : Device , Group , Patient , Practitioner , RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification )

Provenance holding a signature

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Provenance/signature> a fhir:Provenance;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "signature"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from Referral received 26-June</div>"
  ];
  fhir:Provenance.target [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/DocumentReference/example>;
     fhir:Reference.reference [ fhir:value "DocumentReference/example" ]
  ];
  fhir:Provenance.recorded [ fhir:value "2015-08-27T08:39:24+10:00"^^xsd:dateTime];
  fhir:Provenance.reason [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ];
       fhir:Coding.code [ fhir:value "TREAT" ];
       fhir:Coding.display [ fhir:value "treatment" ]
     ]
  ];
  fhir:Provenance.activity [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion" ];
       fhir:Coding.code [ fhir:value "AU" ];
       fhir:Coding.display [ fhir:value "authenticated" ]

<http://hl7.org/fhir/Provenance/signature> a fhir:Provenance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "signature"] ; # 
  fhir:target ( [
     fhir:l <http://hl7.org/fhir/DocumentReference/example/_history/4> ;
     fhir:reference [ fhir:v "DocumentReference/example/_history/4" ]
  ] ) ; #  
#	<text>
#		<status value="extensions"/>
#		<div xmlns="http://www.w3.org/1999/xhtml">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from Referral received 26-June</div>
#	</text>
# ,   
#    where possible, provenance targets SHOULD be version specific,
#    so that there is no ambiguity about which version of the 
#    record this relates to
#   
  fhir:recorded [ fhir:v "2015-08-27T08:39:24+10:00"^^xsd:dateTime] ; # 
  fhir:authorization ( [
     fhir:concept [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
         ] ;
         fhir:code [ fhir:v "TREAT" ] ;
         fhir:display [ fhir:v "treatment" ]
       ] )

     ]
  ];
  fhir:Provenance.agent [
     fhir:index 0;
     fhir:Provenance.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/contractsignertypecodes" ];
         fhir:Coding.code [ fhir:value "VERF" ]
       ]
     ];
     fhir:Provenance.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
         fhir:Identifier.value [ fhir:value "mailto://hhd@ssa.gov" ]

  ] ) ; # 
  fhir:activity [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion>
       ] ;
       fhir:code [ fhir:v "AU" ] ;
       fhir:display [ fhir:v "authenticated" ]
     ] )
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/contractsignertypecodes"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/contractsignertypecodes>
         ] ;
         fhir:code [ fhir:v "VERF" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:system [
           fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
           fhir:l <urn:ietf:rfc:3986>
         ] ;
         fhir:value [ fhir:v "mailto://hhd@ssa.gov" ]

       ]
     ]
  ];
  fhir:Provenance.signature [
     fhir:index 0;
     fhir:Signature.type [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso-astm:E1762-95:2013" ];
       fhir:Coding.code [ fhir:value "1.2.840.10065.1.12.1.5" ];
       fhir:Coding.display [ fhir:value "Verification Signature" ]
     ];
     fhir:Signature.when [ fhir:value "2015-08-27T08:39:24+10:00"^^xsd:dateTime ];
     fhir:Signature.who [
       fhir:link <http://hl7.org/fhir/Practitioner/xcda-author>;
       fhir:Reference.reference [ fhir:value "Practitioner/xcda-author" ]
     ];
     fhir:Signature.targetFormat [ fhir:value "application/fhir+xml" ];
     fhir:Signature.sigFormat [ fhir:value "application/signature+xml" ];
     fhir:Signature.data [ fhir:value "Li4u"^^xsd:base64Binary ]
  ] .

     ] #   very often, the user won't have a known system - these aren't available \n      for security system log ons. But where you can define it, you SHOULD.\n      Most of the time the userId is fully qualfied such as an email address	   
  ] ) ; #   signer = Harold Hippocrates  
  fhir:signature ( [
     fhir:type ( [
       fhir:system [
         fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ;
         fhir:l <urn:iso-astm:E1762-95:2013>
       ] ;
       fhir:code [ fhir:v "1.2.840.10065.1.12.1.5" ] ;
       fhir:display [ fhir:v "Verification Signature" ]
     ] ) ; #   verification signature  
     fhir:when [ fhir:v "2015-08-27T08:39:24+10:00"^^xsd:dateTime ] ;
     fhir:who [
       fhir:l <http://hl7.org/fhir/Practitioner/xcda-author> ;
       fhir:reference [ fhir:v "Practitioner/xcda-author" ]
     ] ;
     fhir:targetFormat [ fhir:v "application/fhir+xml" ] ;
     fhir:sigFormat [ fhir:v "application/signature+xml" ] ;
     fhir:data [ fhir:v "Li4u"^^xsd:base64Binary ]
  ] ) . # 


<http://hl7.org/fhir/DocumentReference/example> a fhir:DocumentReference .

<http://hl7.org/fhir/DocumentReference/example/_history/4> a fhir:DocumentReference .


<http://hl7.org/fhir/Practitioner/xcda-author> a fhir:Practitioner .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Provenance/signature.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Provenance/signature.ttl> .


# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.