@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://sfaa.gov.tw/base/RelatedPerson/related-min> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "related-min"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://sfaa.gov.tw/base/StructureDefinition/RelatedPerson-twss-base" ;
       fhir:index 0 ;
       fhir:link <https://sfaa.gov.tw/base/StructureDefinition/RelatedPerson-twss-base>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h3><b>關係人基本資料</b></h3><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>：B223456789 （http://www.moi.gov.tw）</p></blockquote><blockquote><p><b>關係人編號（usual）</b>：REL-001 （https://example.org/twss/related-person-number）</p></blockquote><p><b>對應個案</b>： <a href=\"Patient-pat-min.html\">Patient/pat-min</a> \"王小明\"</p><p><b>姓名</b>：王媽媽</p><p><b>性別</b>：女性</p><p><b>出生日期</b>：1975-05-01</p><p><b>是否為主要照顧者[extension: <a href=\"StructureDefinition-twss-is-primary-caregiver.html\">twss-is-primary-caregiver</a>]</b>：是</p><p><b>身分識別碼不明註記[extension: <a href=\"StructureDefinition-twss-related-person-identifier-unknown.html\">twss-related-person-identifier-unknown</a>]</b>：否</p><p><b>國籍[extension: <a href=\"StructureDefinition-twss-related-person-nationality.html\">twss-related-person-nationality</a>]</b>：<span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> （ <a href=\"https://terminology.hl7.org/CodeSystem-ISO3166Part1.html\">ISO3166Part1</a>#TW）</span></p><p><b>聯絡方式</b>：Phone <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"https://hl7.org/fhir/R4/valueset-contact-point-system.html\">ContactPointSystem</a>#phone）</span><br/><b>聯絡電話</b>：0912345678</p><p><b>聯絡地址</b>：11558臺北市南港區新光里忠孝東路六段488號</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-related-person-identifier-unknown" ] ;
     fhir:Extension.valueBoolean [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-is-primary-caregiver" ] ;
     fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
  ], [
     fhir:index 2 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-is-guardian" ] ;
     fhir:Extension.valueBoolean [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 3 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-is-primary-contact" ] ;
     fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
  ], [
     fhir:index 4 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-is-legal-representative" ] ;
     fhir:Extension.valueBoolean [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 5 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-related-person-nationality" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
         fhir:Coding.code [ fhir:value "TW" ]
       ]
     ]
  ], [
     fhir:index 6 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-ethnic-group" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-ethnic-group" ] ;
         fhir:Coding.code [ fhir:value "A" ] ;
         fhir:Coding.display [ fhir:value "一般" ]
       ]
     ]
  ], [
     fhir:index 7 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-related-person-age" ] ;
     fhir:Extension.valueAge [
       fhir:Quantity.value [ fhir:value "51"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "歲" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "a" ]
     ]
  ], [
     fhir:index 8 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-related-person-marital-status" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" ] ;
         fhir:Coding.code [ fhir:value "M" ] ;
         fhir:Coding.display [ fhir:value "Married" ]
       ]
     ]
  ] ;
  fhir:RelatedPerson.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 "B223456789" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.use [ fhir:value "usual" ] ;
     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 "RI" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "關係人編號" ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://example.org/twss/related-person-number" ] ;
     fhir:Identifier.value [ fhir:value "REL-001" ]
  ] ;
  fhir:RelatedPerson.patient [
     fhir:link <https://sfaa.gov.tw/base/Patient/pat-min> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-min" ]
  ] ;
  fhir:RelatedPerson.name [
     fhir:index 0 ;
     fhir:HumanName.text [ fhir:value "王媽媽" ]
  ] ;
  fhir:RelatedPerson.telecom [
     fhir:index 0 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "0912345678" ]
  ] ;
  fhir:RelatedPerson.gender [ fhir:value "female"] ;
  fhir:RelatedPerson.birthDate [ fhir:value "1975-05-01"^^xsd:date] ;
  fhir:RelatedPerson.address [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village" ] ;
       fhir:Extension.valueString [ fhir:value "新光里" ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section" ] ;
       fhir:Extension.valueString [ fhir:value "六段" ]
     ], [
       fhir:index 2 ;
       fhir:Extension.url [ fhir:value "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number" ] ;
       fhir:Extension.valueString [ fhir:value "488號" ]
     ] ;
     fhir:Address.text [ fhir:value "11558臺北市南港區新光里忠孝東路六段488號" ] ;
     fhir:Address.line [
       fhir:value "忠孝東路" ;
       fhir:index 0
     ] ;
     fhir:Address.city [ fhir:value "南港區" ] ;
     fhir:Address.district [ fhir:value "臺北市" ] ;
     fhir:Address.postalCode [ fhir:value "11558" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/RelatedPerson/related-min.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

