@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 -------------------------------------------------------------------

<https://nhicore.nhi.gov.tw/ci/Patient/pat-min> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "pat-min"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://nhicore.nhi.gov.tw/ci/StructureDefinition/Patient-twci" ;
       fhir:index 0 ;
       fhir:link <https://nhicore.nhi.gov.tw/ci/StructureDefinition/Patient-twci>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><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\">Profile: <a href=\"StructureDefinition-Patient-twci.html\">病人資訊-Patient TWCI</a></p></div><blockquote><p><b>識別碼型別</b>：National Person Identifier <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"http://terminology.hl7.org/CodeSystem/v2-0203\">Identifier Type Codes</a>#NNxxx）</span><br/><b>身分證號（official）</b>：A123456789 （http://www.moi.gov.tw）</p></blockquote><blockquote><p><b>識別碼型別</b>：Medical record number <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"http://terminology.hl7.org/CodeSystem/v2-0203\">Identifier Type Codes</a>#MR）</span><br/><b>病歷號（official）</b>：123456 （https://tpech.gov.taipei）</p></blockquote><p><b>姓名（usual）</b>：王大明</p><p><b>性別</b>：男（male）</p><p><b>出生日期</b>：2001-01-01</p><p><b>手機號碼</b>：0912345678</p><p><b>連絡電話</b>：0227065866</p><p><b>電子郵件信箱</b>：a123456@nhi.gov.tw</p><p><b>郵遞區號</b>：106</p><p><b>連絡住址</b>：台北市大安區信義路三段140號</p></div>"
  ] ;
  fhir:Patient.identifier [
     fhir:index 0 ;
     fhir:Identifier.use [ fhir:value "official" ] ;
     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:index 1 ;
     fhir:Identifier.use [ fhir:value "official" ] ;
     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 "MR" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://tpech.gov.taipei" ] ;
     fhir:Identifier.value [ fhir:value "123456" ]
  ] ;
  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 "sms" ] ;
     fhir:ContactPoint.value [ fhir:value "0912345678" ]
  ], [
     fhir:index 1 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "0227065866" ]
  ], [
     fhir:index 2 ;
     fhir:ContactPoint.system [ fhir:value "email" ] ;
     fhir:ContactPoint.value [ fhir:value "a123456@nhi.gov.tw" ]
  ] ;
  fhir:Patient.gender [ fhir:value "male"] ;
  fhir:Patient.birthDate [ fhir:value "2001-01-01"^^xsd:date] ;
  fhir:Patient.address [
     fhir:index 0 ;
     fhir:Address.text [ fhir:value "台北市大安區信義路三段140號" ] ;
     fhir:Address.postalCode [
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw" ] ;
             fhir:Coding.code [ fhir:value "106" ]
           ]
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nhicore.nhi.gov.tw/ci/Patient/pat-min.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

