R6 Ballot (2nd Draft)

Publish-box (todo)

Example Provenance/consent-signature (Turtle)

Security Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Patient, Practitioner, RelatedPerson

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

Provenance with signature for a Consent

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

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

#   
#  This provenance example is paired with the 
#  consent signature example.   
# 

[a fhir:Provenance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "consent-signature"] ; # 
  fhir:target ( [
     fhir:reference [ fhir:v "Consent/consent-example-basic/_history/1" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2016-05-26T00:41:10-04:00"^^xsd:dateTime] ; #   the provenance is recorded at the same time as 
#    the resource - batched together  
  fhir:activity [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "AU" ] ;
       fhir:display [ fhir:v "authenticated" ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:agent ( [
     fhir:role ( [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "AUT" ]
       ] )
     ] ) ;
     fhir:who [
       fhir:reference [ fhir:v "Patient/72" ]
     ]
  ] ) ; # 
  fhir:signature ( [
     fhir:type ( [
       fhir:system [ fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "1.2.840.10065.1.12.1.1" ] ;
       fhir:display [ fhir:v "Author's Signature" ]
     ] ) ;
     fhir:when [ fhir:v "2016-05-26T00:41:10-04:00"^^xsd:dateTime ] ;
     fhir:who [
       fhir:reference [ fhir:v "Patient/72" ]
     ] ;
     fhir:targetFormat [ fhir:v "application/fhir+xml" ] ;
     fhir:sigFormat [ fhir:v "application/signature+xml" ] ;
     fhir:data [ fhir:v "dGhpcyBibG9iIGlzIHNuaXBwZWQ="^^xsd:base64Binary ]
  ] )] . # 

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


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.