@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 -------------------------------------------------------------------

<http://hl7.org.au/fhir/RelatedPerson/example2> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example2"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org.au/fhir/StructureDefinition/au-relatedperson" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org.au/fhir/StructureDefinition/au-relatedperson>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson example2</b></p><a name=\"example2\"> </a><a name=\"hcexample2\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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 style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Sarah Simmons - mother (Medicare Number: 22968184811 (period: (?) --&gt; 2022-12))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Administrative gender\">Gender:</td><td>Female</td><td style=\"background-color: #f3f5da\" title=\"Date of birth\">Date of Birth:</td><td>1977-09-07</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The patient this person is related to\">Patient:</td><td colspan=\"3\"><a href=\"Patient-example4.html\">Suzanne Simmons  Female, DoB: 2008-08-08 ( Medical record number: 22446688)</a></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nature of the relationship between the patient and the related person\">Relationship:</td><td colspan=\"3\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode MTH}\">mother</span></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Related Person\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"mailto:ssimmons@amail.example.com\">ssimmons@amail.example.com</a></li><li>ph: (03) 5550 6677(Home)</li><li>55 Sarah Street Strahan TAS 7468 AU </li></ul></td></tr></table></div>"
  ] ;
  fhir:RelatedPerson.identifier [
     fhir:index -1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "MC" ] ;
         fhir:Coding.display [ fhir:value "Patient's Medicare number" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Medicare Number" ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://ns.electronichealth.net.au/id/medicare-number" ] ;
     fhir:Identifier.value [ fhir:value "22968184811" ] ;
     fhir:Identifier.period [
       fhir:Period.end [ fhir:value "2022-12"^^xsd:gYearMonth ]
     ]
  ] ;
  fhir:RelatedPerson.patient [
     fhir:link <http://hl7.org.au/fhir/Patient/example4> ;
     fhir:Reference.reference [ fhir:value "Patient/example4" ]
  ] ;
  fhir:RelatedPerson.relationship [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ] ;
       fhir:Coding.code [ fhir:value "MTH" ] ;
       fhir:Coding.display [ fhir:value "mother" ]
     ]
  ] ;
  fhir:RelatedPerson.name [
     fhir:index -1 ;
     fhir:HumanName.family [ fhir:value "Simmons" ] ;
     fhir:HumanName.given [
       fhir:value "Sarah" ;
       fhir:index -1
     ]
  ] ;
  fhir:RelatedPerson.telecom [
     fhir:index -1 ;
     fhir:ContactPoint.system [ fhir:value "email" ] ;
     fhir:ContactPoint.value [ fhir:value "ssimmons@amail.example.com" ] ;
     fhir:ContactPoint.use [ fhir:value "home" ]
  ], [
     fhir:index -1 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "(03) 5550 6677" ] ;
     fhir:ContactPoint.use [ fhir:value "home" ]
  ] ;
  fhir:RelatedPerson.gender [ fhir:value "female"] ;
  fhir:RelatedPerson.birthDate [ fhir:value "1977-09-07"^^xsd:date] ;
  fhir:RelatedPerson.address [
     fhir:index -1 ;
     fhir:Address.line [
       fhir:value "55 Sarah Street" ;
       fhir:index -1
     ] ;
     fhir:Address.city [ fhir:value "Strahan" ] ;
     fhir:Address.state [ fhir:value "TAS" ] ;
     fhir:Address.postalCode [ fhir:value "7468" ] ;
     fhir:Address.country [ fhir:value "AU" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.au/fhir/RelatedPerson/example2.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

