@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/RelatedPerson/rel-example> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "rel-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"^^xsd:anyURI ;
       fhir:l <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson rel-example</b></p><a name=\"rel-example\"> </a><a name=\"hcrel-example\"> </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-RelatedPerson-twcore.html\">TW Core RelatedPerson</a></p></div><p><b>active</b>: true</p><p><b>patient</b>: <a href=\"Patient-pat-example.html\">陳加玲(official) Female, DoB: 1990-01-01 ( Medical record number (use: official, ))</a></p><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode NIECE}\">niece</span></p><p><b>name</b>: 陳簡伊(Official)</p><p><b>telecom</b>: ph: 0911595995(Mobile)</p><p><b>birthDate</b>: 1996-01-28</p><p><b>address</b>: 臺北市大同區大有里19鄰承德路三段52巷6弄210號2樓C室</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:patient [
     fhir:l <https://twcore.mohw.gov.tw/ig/twcore/Patient/pat-example> ;
     fhir:reference [ fhir:v "Patient/pat-example" ]
  ] ; # 
  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 "NIECE" ] ;
       fhir:display [ fhir:v "niece" ]
     ] )
  ] ) ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:text [ fhir:v "陳簡伊" ] ;
     fhir:family [ fhir:v "Chen" ] ;
     fhir:given ( [ fhir:v "Jian Yi" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "0911595995" ] ;
     fhir:use [ fhir:v "mobile" ]
  ] ) ; # 
  fhir:birthDate [ fhir:v "1996-01-28"^^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 "C室"
       ]
     ] ) ;
     fhir:text [ fhir:v "臺北市大同區大有里19鄰承德路三段52巷6弄210號2樓C室" ] ;
     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" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

