@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 -------------------------------------------------------------------

<https://jefersonrl.github.io/AgroSUS-FHIR/Patient/agrosus-patient-example> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "agrosus-patient-example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://jefersonrl.github.io/AgroSUS-FHIR/StructureDefinition/agrosus-patient" ;
       fhir:index 0 ;
       fhir:link <https://jefersonrl.github.io/AgroSUS-FHIR/StructureDefinition/agrosus-patient>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "pt-BR"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pt-BR\" lang=\"pt-BR\"><p class=\"res-header-id\"><b>Narrativa gerada: Patient agrosus-patient-example</b></p><a name=\"agrosus-patient-example\"> </a><a name=\"hcagrosus-patient-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\">Língua: pt-BR</p><p style=\"margin-bottom: 0px\">Perfil: <a href=\"StructureDefinition-agrosus-patient.html\">Paciente AgroSUS</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Maria Aparecida de Souza(official) Female, DoB: 1978-05-14 ( Health Card Number: NamingSystemCNS#987654321098765 (use: official, ))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"O registo está ativo\">Ativo:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\">Tax ID number/12345678901 (utilização: official, )</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Formas de contactar o doente\">Detalhes do contacto</td><td colspan=\"3\"><ul><li><a href=\"tel:+551190000-0000\">+55 11 90000-0000</a></li><li>Propriedade Rural Exemplo, Jundiapeba, Mogi das Cruzes, SP(home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Elemento que define a raça do indivíduo\"><a href=\"https://ips.saude.gov.br/fhir/StructureDefinition-raca-br-ips.html\">Raça BR IPS</a></td><td colspan=\"3\"><span title=\"Códigos:{https://terminologia.saude.gov.br/fhir/CodeSystem/BRRacaCor 01}\">Branca</span></td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://ips.saude.gov.br/fhir/StructureDefinition/raca-br-ips" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://terminologia.saude.gov.br/fhir/CodeSystem/BRRacaCor" ] ;
         fhir:Coding.code [ fhir:value "01" ] ;
         fhir:Coding.display [ fhir:value "Branca" ]
       ]
     ]
  ] ;
  fhir:Patient.identifier [
     fhir:index 0 ;
     fhir:Identifier.use [ fhir:value "official" ] ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "TAX" ] ;
         fhir:Coding.display [ fhir:value "Tax ID number" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://saude.gov.br/fhir/sid/cpf" ] ;
     fhir:Identifier.value [ fhir:value "12345678901" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.use [ fhir:value "official" ] ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "HC" ] ;
         fhir:Coding.display [ fhir:value "Health Card Number" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://saude.gov.br/fhir/sid/cns" ] ;
     fhir:Identifier.value [ fhir:value "987654321098765" ]
  ] ;
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean] ;
  fhir:Patient.name [
     fhir:index 0 ;
     fhir:HumanName.use [ fhir:value "official" ] ;
     fhir:HumanName.text [ fhir:value "Maria Aparecida de Souza" ] ;
     fhir:HumanName.family [ fhir:value "Souza" ] ;
     fhir:HumanName.given [
       fhir:value "Maria" ;
       fhir:index 0
     ], [
       fhir:value "Aparecida" ;
       fhir:index 1
     ]
  ] ;
  fhir:Patient.telecom [
     fhir:index 0 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "+55 11 90000-0000" ] ;
     fhir:ContactPoint.use [ fhir:value "mobile" ]
  ] ;
  fhir:Patient.gender [ fhir:value "female"] ;
  fhir:Patient.birthDate [ fhir:value "1978-05-14"^^xsd:date] ;
  fhir:Patient.address [
     fhir:index 0 ;
     fhir:Address.use [ fhir:value "home" ] ;
     fhir:Address.type [ fhir:value "physical" ] ;
     fhir:Address.text [ fhir:value "Propriedade Rural Exemplo, Jundiapeba, Mogi das Cruzes, SP" ] ;
     fhir:Address.line [
       fhir:value "Propriedade Rural Exemplo, s/n" ;
       fhir:index 0
     ] ;
     fhir:Address.city [ fhir:value "Mogi das Cruzes" ] ;
     fhir:Address.district [ fhir:value "Jundiapeba" ] ;
     fhir:Address.state [ fhir:value "SP" ] ;
     fhir:Address.country [ fhir:value "Brasil" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://jefersonrl.github.io/AgroSUS-FHIR/Patient/agrosus-patient-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

