@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 -------------------------------------------------------------------

<https://twcore.mohw.gov.tw/ig/twcore/Patient/pat-example> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "pat-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore"^^xsd:anyURI ;
       fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<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 <b>[extension: <a href=\"StructureDefinition-identifier-suffix.html\">Identifier Suffix</a>]：</b>TWN）</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>：8862168 （https://www.tph.mohw.gov.tw）</p></blockquote><p><b>病人的紀錄（active）</b>：使用中</p><p><b>姓名（official）</b>：陳加玲 Chan, Chia Lin</p><p><b>性別</b>：女性</p><p><b>出生日期</b>：1990-01-01</p><p><b>年齡[extension: <a href=\"StructureDefinition-person-age.html\">person-age</a>]</b>：32</p><p><b>國籍[extension: <a href=\"http://hl7.org/fhir/StructureDefinition/patient-nationality\">patient-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>：（Mobile）0911327999 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"https://build.fhir.org/codesystem-contact-point-use.html\">ContactPointUse</a>#mobile）</span><br/><b>聯絡電話使用效期</b>：2022-07-31至2024-07-31</p><p><b>聯絡地址</b>：(103)臺北市大同區大有里19鄰承德路三段52巷6弄210號2樓B室<br/><b>郵遞區號（postalCode） [extension: <a href=\"StructureDefinition-tw-postal-code.html\">tw-postal-code</a>] </b>： <a href=\"CodeSystem-postal-code3-tw.html\">103</a><br/><b>縣/市（district）</b>：臺北市<br/><b>鄉/鎮/市/區（city）</b>：大同區<br/><b>村(里)（village） [extension: <a href=\"StructureDefinition-tw-village.html\">tw-village</a>] </b>：大有里<br/><b>鄰（neighborhood） [extension: <a href=\"StructureDefinition-tw-neighborhood.html\">tw-neighborhood</a>] </b>：19鄰<br/><b>路/街（line）</b>：承德路<br/><b>段(section) [extension: <a href=\"StructureDefinition-tw-section.html\">tw-section</a>] </b>：三段<br/><b>巷/衖（lane） [extension: <a href=\"StructureDefinition-tw-lane.html\">tw-lane</a>] </b>：52巷<br/><b>弄（alley） [extension: <a href=\"StructureDefinition-tw-alley.html\">tw-alley</a>] </b>：6弄<br/><b>號（number） [extension: <a href=\"StructureDefinition-tw-number.html\">tw-number</a>] </b>：210號<br/><b>樓（floor） [extension: <a href=\"StructureDefinition-tw-floor.html\">tw-floor</a>] </b>：2樓<br/><b>室（room） [extension: <a href=\"StructureDefinition-tw-room.html\">tw-room</a>] </b>：B室<br/><b>國家（country）</b>：臺灣<br/><br/></p><p><b>婚姻狀態</b>：unmarried <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus\">臺灣婚姻狀態值集</a>#U）</span></p><p><b>聯絡人（official）</b>：李立偉 Li, Li Wei<br/><b>關係</b>：father <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"http://terminology.hl7.org/CodeSystem/v3-RoleCode\">PatientRelationshipType</a>#FTH）</span><br/><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>：（Mobile）0917159753 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"https://build.fhir.org/codesystem-contact-point-use.html\">ContactPointUse</a>#mobile）</span><br/><b>聯絡電話使用效期</b>：2022-07-31至2024-07-31</p><p><b>向病人說明健康狀態時所使用的語言</b>：中文</p><p><b>紀錄的保管機構</b>： <a href=\"Organization-org-hosp-example.html\">Organization/org-hosp-example</a> \"衛生福利部臺北醫院\"</p><p><b>病人影像</b>： <a href=\"https://2.bp.blogspot.com/-v3yEwItkXKQ/VaMN_1Nx6TI/AAAAAAAAvhM/zDXN_eZw_UE/s800/youngwoman_42.png\">patient.png</a><br/><img src=\"https://2.bp.blogspot.com/-v3yEwItkXKQ/VaMN_1Nx6TI/AAAAAAAAvhM/zDXN_eZw_UE/s800/youngwoman_42.png\" width=\"250px\"/></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age"^^xsd:anyURI ;
       fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/person-age>
     ] ;
     fhir:value [
       a fhir:Age ;
       fhir:value [ fhir:v "32"^^xsd:decimal ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "a" ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [
         fhir:v "code"^^xsd:anyURI ;
         fhir:l fhir:code
       ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [
             fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
             fhir:l <urn:iso:std:iso:3166>
           ] ;
           fhir:code [ fhir:v "TW" ]
         ] )
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/patient-nationality"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/patient-nationality>
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [
           fhir:v "NNxxx" ;
           fhir:extension ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "suffix"^^xsd:anyURI ;
                 fhir:l fhir:suffix
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "TWN"
               ]
             ] [
               fhir:url [
                 fhir:v "valueSet"^^xsd:anyURI ;
                 fhir:l fhir:valueSet
               ] ;
               fhir:value [
                 a fhir:Canonical ;
                 fhir:v "http://hl7.org/fhir/ValueSet/iso3166-1-3"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/ValueSet/iso3166-1-3>
               ]
             ] ) ;
             fhir:url [
               fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix"^^xsd:anyURI ;
               fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/identifier-suffix>
             ]
           ] )
         ]
       ] )
     ] ;
     fhir:system [
       fhir:v "http://www.moi.gov.tw"^^xsd:anyURI ;
       fhir:l <http://www.moi.gov.tw>
     ] ;
     fhir:value [ fhir:v "A123456789" ]
  ] [
     fhir:use [ fhir:v "official" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [ fhir:v "MR" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "https://www.tph.mohw.gov.tw"^^xsd:anyURI ;
       fhir:l <https://www.tph.mohw.gov.tw>
     ] ;
     fhir:value [ fhir:v "8862168" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:text [ fhir:v "陳加玲" ] ;
     fhir:family [ fhir:v "Chen" ] ;
     fhir:given ( [ fhir:v "Chia Lin" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "0911327999" ] ;
     fhir:use [ fhir:v "mobile" ] ;
     fhir:period [
       fhir:start [ fhir:v "2022-07-31"^^xsd:date ] ;
       fhir:end [ fhir:v "2024-07-31"^^xsd:date ]
     ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1990-01-01"^^xsd:date] ; # 
  fhir:address ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-section>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "三段"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-number>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "210號"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-village>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "大有里"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-neighborhood>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "19鄰"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-lane>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "52巷"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-alley>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "6弄"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-floor>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "2樓"
       ]
     ] [
       fhir:url [
         fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room"^^xsd:anyURI ;
         fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-room>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "B室"
       ]
     ] ) ;
     fhir:text [ fhir:v "臺北市大同區大有里19鄰承德路三段52巷6弄210號2樓B室" ] ;
     fhir:line ( [ fhir:v "承德路" ] ) ;
     fhir:city [ fhir:v "大同區" ] ;
     fhir:district [ fhir:v "臺北市" ] ;
     fhir:postalCode [
       fhir:extension ( [
         fhir:url [
           fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code"^^xsd:anyURI ;
           fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/tw-postal-code>
         ] ;
         fhir:value [
           a fhir:CodeableConcept ;
           fhir:coding ( [
             fhir:system [
               fhir:v "https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw"^^xsd:anyURI ;
               fhir:l <https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/postal-code3-tw>
             ] ;
             fhir:code [ fhir:v "103" ]
           ] )
         ]
       ] )
     ] ;
     fhir:country [ fhir:v "TW" ]
  ] ) ; # 
  fhir:maritalStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-MaritalStatus>
       ] ;
       fhir:code [ fhir:v "U" ]
     ] )
  ] ; # 
  fhir:photo ( [
     fhir:contentType [ fhir:v "image/jpeg" ] ;
     fhir:url [
       fhir:v "patient.png"^^xsd:anyURI ;
       fhir:l fhir:patient.png
     ]
  ] ) ; # 
  fhir:contact ( [
     fhir:relationship ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-RoleCode"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-RoleCode>
         ] ;
         fhir:code [ fhir:v "FTH" ]
       ] )
     ] ) ;
     fhir:name [
       fhir:use [ fhir:v "official" ] ;
       fhir:text [ fhir:v "李立偉" ] ;
       fhir:family [ fhir:v "Li" ] ;
       fhir:given ( [ fhir:v "Li Wei" ] )
     ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "0917159753" ] ;
       fhir:use [ fhir:v "mobile" ] ;
       fhir:period [
         fhir:start [ fhir:v "2022-07-31"^^xsd:date ] ;
         fhir:end [ fhir:v "2024-07-31"^^xsd:date ]
       ]
     ] )
  ] ) ; # 
  fhir:communication ( [
     fhir:language [
       fhir:coding ( [
         fhir:system [
           fhir:v "urn:ietf:bcp:47"^^xsd:anyURI ;
           fhir:l <urn:ietf:bcp:47>
         ] ;
         fhir:code [ fhir:v "zh-TW" ]
       ] )
     ]
  ] ) ; # 
  fhir:managingOrganization [
     fhir:l <https://twcore.mohw.gov.tw/ig/twcore/Organization/org-hosp-example> ;
     fhir:reference [ fhir:v "Organization/org-hosp-example" ]
  ] . # 

# -------------------------------------------------------------------------------------

