@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org.au/fhir/RelatedPerson/example1> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example1"] ; # 
  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 example1</b></p><a name=\"example1\"> </a><a name=\"hcexample1\"> </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>active</b>: true</p><p><b>patient</b>: <a href=\"Patient-example1.html\">Harry Dan  Male, DoB: 1939-08-25 ( IHI: Austalian Healthcare Identifier - Individual#8003608833357361)</a></p><p><b>relationship</b>: <span title=\"Codes:{http://snomed.info/sct 133932002}\">Caregiver</span></p><p><b>name</b>: Mary Smith </p><p><b>telecom</b>: <a href=\"mailto:msmith@amail.example.com\">msmith@amail.example.com</a>, ph: (02)55501234(Home)</p><p><b>gender</b>: Female</p><p><b>address</b>: 255 Gadsby Street Blacktown NSW 2148 AU </p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:patient [
     fhir:l <http://hl7.org.au/fhir/Patient/example1> ;
     fhir:reference [ fhir:v "Patient/example1" ]
  ] ; # 
  fhir:relationship ( [
     fhir:coding ( [
       a sct:133932002 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "133932002" ] ;
       fhir:display [ fhir:v "Carer" ]
     ] ) ;
     fhir:text [ fhir:v "Caregiver" ]
  ] ) ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Smith" ] ;
     fhir:given ( [ fhir:v "Mary" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "email" ] ;
     fhir:value [ fhir:v "msmith@amail.example.com" ] ;
     fhir:use [ fhir:v "home" ]
  ] [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "(02)55501234" ] ;
     fhir:use [ fhir:v "home" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "255 Gadsby Street" ] ) ;
     fhir:city [ fhir:v "Blacktown" ] ;
     fhir:state [ fhir:v "NSW" ] ;
     fhir:postalCode [ fhir:v "2148" ] ;
     fhir:country [ fhir:v "AU" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

