@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 -------------------------------------------------------------------

<http://fhir.org.nz/ig/base/Patient/patient-nhi> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient-nhi"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org.nz/fhir/StructureDefinition/NzPatient"^^xsd:anyURI ;
       fhir:link <http://hl7.org.nz/fhir/StructureDefinition/NzPatient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Patient patient-nhi</b></p><a name=\"patient-nhi\"> </a><a name=\"hcpatient-nhi\"> </a><a name=\"patient-nhi-en-US\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">John Doe Male, DoB: 1998-01-01 ( https://example.com/mysystem#other system id (use: official, ))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Ids (see the one above)\">Other Ids:</td><td colspan=\"3\"><ul><li><a href=\"NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/activeIdent (use: official, )</li><li><a href=\"NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/dormant (use: old, )</li><li><a href=\"NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/dormant2 (use: old, )</li><li><code>https://example.com/mysystem</code>/other system id2 (use: temp, )</li></ul></td></tr></table></div>"
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nhi-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "activeIdent" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nhi-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "dormant" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nhi-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "dormant2" ]
  ] [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "https://example.com/mysystem"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "other system id" ]
  ] [
     fhir:use [ fhir:v "temp" ] ;
     fhir:system [ fhir:v "https://example.com/mysystem"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "other system id2" ]
  ] ) ; # 
  fhir:name ( [
     fhir:text [ fhir:v "John Doe" ] ;
     fhir:family [ fhir:v "Doe" ] ;
     fhir:given ( [ fhir:v "John" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1998-01-01"^^xsd:date] . # 

# -------------------------------------------------------------------------------------

