@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 -------------------------------------------------------------------

<http://hl7.org.au/fhir/RelatedPerson/example0> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example0"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org.au/fhir/StructureDefinition/au-relatedperson"^^xsd:anyURI ;
       fhir:l <http://hl7.org.au/fhir/StructureDefinition/au-relatedperson>
     ] )
  ] ; # 
  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 example0</b></p><a name=\"example0\"> </a><a name=\"hcexample0\"> </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-au-relatedperson.html\">AU Base RelatedPerson</a></p></div><p><b>identifier</b>: Medical record number/767767765FRD</p><p><b>active</b>: true</p><p><b>patient</b>: <a href=\"Patient-example0.html\">Stella Franklin (official) Female, DoB: 1985-10-14 ( IHI: Austalian Healthcare Identifier - Individual#8003608833357361)</a></p><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0131 N}, {http://terminology.hl7.org/CodeSystem/v3-RoleCode WIFE}\">Next-of-Kin</span></p><p><b>name</b>: Benedicte du Marche </p><p><b>telecom</b>: <a href=\"tel:+33(237)998327\">+33 (237) 998327</a></p><p><b>gender</b>: Female</p><p><b>address</b>: 43, Place du Marche Sainte Catherine Paris 75004 FRA </p><h3>Photos</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Url</b></td></tr><tr><td style=\"display: none\">*</td><td>image/jpeg</td><td>Binary/f016</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     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 "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003621566684455"^^xsd:anyURI ;
       fhir:l <http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003621566684455>
     ] ;
     fhir:value [ fhir:v "767767765FRD" ] ;
     fhir:assigner [
       fhir:l <http://hl7.org.au/fhir/Organization/example0> ;
       fhir:reference [ fhir:v "Organization/example0" ] ;
       fhir:display [ fhir:v "Downunder Hospital" ]
     ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:patient [
     fhir:l <http://hl7.org.au/fhir/Patient/example0> ;
     fhir:reference [ fhir:v "Patient/example0" ]
  ] ; # 
  fhir:relationship ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v2-0131"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v2-0131>
       ] ;
       fhir:code [ fhir:v "N" ]
     ] [
       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 "WIFE" ]
     ] )
  ] ) ; # 
  fhir:name ( [
     fhir:family [
       fhir:v "du Marche" ;
       fhir:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/humanname-own-prefix>
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "VV"
         ]
       ] ) #     the \"du\" part is a family name prefix (VV in iso 21090)    
     ] ;
     fhir:given ( [ fhir:v "Benedicte" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "+33 (237) 998327" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "43, Place du Marche Sainte Catherine" ] ) ;
     fhir:city [ fhir:v "Paris" ] ;
     fhir:postalCode [ fhir:v "75004" ] ;
     fhir:country [ fhir:v "FRA" ]
  ] ) ; # 
  fhir:photo ( [
     fhir:contentType [ fhir:v "image/jpeg" ] ;
     fhir:url [
       fhir:v "Binary/f016"^^xsd:anyURI ;
       fhir:l <http://hl7.org.au/fhir/Binary/f016>
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

