@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://ltc-ig.fhir.tw/Patient/hah-patient> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "hah-patient"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://ltc-ig.fhir.tw/StructureDefinition/HAHPatient" ;
       fhir:index 0 ;
       fhir:link <http://ltc-ig.fhir.tw/StructureDefinition/HAHPatient>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Patient hah-patient</b></p><a name=\"hah-patient\"> </a><a name=\"hchah-patient\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-HAHPatient.html\">在宅急症－個案</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">王測試 Male, DoB: 1945-03-15 ( Provider number)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\">National Person Identifier where the xxx is the ISO table 3166 3-character (alphabetic) country code/A123456789</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 02-00000000</li><li>臺北市中正區測試路1號(home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: Emergency Contact\">Emergency Contact:</td><td colspan=\"3\"><ul><li>王家屬</li><li>ph: 02-00000001</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>Managing Organization: <a href=\"Organization-hah-organization.html\">Organization 在宅急症示範醫療機構</a></li></ul></td></tr></table></div>"
  ] ;
  fhir:Patient.identifier [
     fhir:index 0 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "PRN" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://example.org/hah/patients" ] ;
     fhir:Identifier.value [ fhir:value "HAH0001" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "NNxxx" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://www.moi.gov.tw" ] ;
     fhir:Identifier.value [ fhir:value "A123456789" ]
  ] ;
  fhir:Patient.name [
     fhir:index 0 ;
     fhir:HumanName.use [ fhir:value "usual" ] ;
     fhir:HumanName.text [ fhir:value "王測試" ]
  ] ;
  fhir:Patient.telecom [
     fhir:index 0 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "02-00000000" ]
  ] ;
  fhir:Patient.gender [ fhir:value "male"] ;
  fhir:Patient.birthDate [ fhir:value "1945-03-15"^^xsd:date] ;
  fhir:Patient.address [
     fhir:index 0 ;
     fhir:Address.use [ fhir:value "home" ] ;
     fhir:Address.text [ fhir:value "臺北市中正區測試路1號" ]
  ] ;
  fhir:Patient.contact [
     fhir:index 0 ;
     fhir:Patient.contact.relationship [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0131" ] ;
         fhir:Coding.code [ fhir:value "C" ]
       ]
     ] ;
     fhir:Patient.contact.name [
       fhir:HumanName.text [ fhir:value "王家屬" ]
     ] ;
     fhir:Patient.contact.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "phone" ] ;
       fhir:ContactPoint.value [ fhir:value "02-00000001" ]
     ]
  ] ;
  fhir:Patient.managingOrganization [
     fhir:link <http://ltc-ig.fhir.tw/Organization/hah-organization> ;
     fhir:Reference.reference [ fhir:value "Organization/hah-organization" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://ltc-ig.fhir.tw/Patient/hah-patient.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

