@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.au/fhir/Patient/example3> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example3"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org.au/fhir/StructureDefinition/au-patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org.au/fhir/StructureDefinition/au-patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p><b>id</b>: example3</p>\n      <p><b>name</b>: John Smith </p>\n      <p><b>telecom</b>: jsmith@amail.com.au</p>\n      <p><b>birthDate</b>: 1956-08-23</p>\n      <p><b>birthTime</b>: 14:35:45-05:00</p>\n      <p><b>address</b>: 10 Smith Street Neutral Bay NSW 2055 Australia</p>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Smith" ] ;
     fhir:given ( [ fhir:v "John" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "email" ] ;
     fhir:value [ fhir:v "jsmith@amail.example.com" ]
  ] ) ; # 
  fhir:birthDate [
     fhir:v "1956-08-23"^^xsd:date ;
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"^^xsd:anyURI ;
         fhir:l <http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1"^^xsd:anyURI ;
           fhir:l <https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1>
         ] ;
         fhir:code [ fhir:v "AAA" ] ;
         fhir:display [ fhir:v "Day, month and year are accurate" ]
       ]
     ] [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/patient-birthTime"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/patient-birthTime>
       ] ;
       fhir:value [
         a fhir:DateTime ;
         fhir:v "1956-08-23T14:35:45-05:00"^^xsd:dateTime
       ]
     ] )
  ] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "10 Smith Street" ] ) ;
     fhir:city [ fhir:v "Neutral Bay" ] ;
     fhir:state [ fhir:v "NSW" ] ;
     fhir:postalCode [ fhir:v "2055" ] ;
     fhir:country [ fhir:v "Australia" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

