@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://fhir.apps.health/Patient/john-smith-alberta> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "john-smith-alberta"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.apps.health/StructureDefinition/polaris-core-patient"^^xsd:anyURI ;
       fhir:link <https://fhir.apps.health/StructureDefinition/polaris-core-patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>John Smith, 45-year-old male patient from Alberta with PHN 123456789</p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/telus-health-chr-patient-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "PAT-2025-001" ]
  ] [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "https://fhir.infoway-inforoute.ca/NamingSystem/ca-ab-patient-healthcare-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "123456789" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Smith" ] ;
     fhir:given ( [ fhir:v "John" ] [ fhir:v "Robert" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1979-03-15"^^xsd:date] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "123 Main Street" ] ) ;
     fhir:city [ fhir:v "Calgary" ] ;
     fhir:state [ fhir:v "AB" ] ;
     fhir:postalCode [ fhir:v "T2P 1J9" ] ;
     fhir:country [ fhir:v "CA" ]
  ] ) ; # 
  fhir:managingOrganization [
     fhir:identifier [
       fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/organization-identifier"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "telus-health-chr" ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

