@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://sfaa.gov.tw/base/SearchParameter/Observation-patient> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Observation-patient"] ;
  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: SearchParameter Observation-patient</b></p><a name=\"Observation-patient\"> </a><a name=\"hcObservation-patient\"> </a><h2>ObservationPatient</h2><p>Parameter <code>patient</code>:<code>reference</code></p><div><p>Observation 所對應的個案。</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a></td></tr><tr><td>Expression</td><td><code>Observation.subject.where(resolve() is Patient)</code></td></tr><tr><td>Target Resources</td><td><a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></td></tr><tr><td>Multiples</td><td><ul><li>multipleAnd: It's up to the server whether the parameter may repeat in order to specify multiple values that must all be true</li><li>multipleOr: It's up to the server whether the parameter can have multiple values (separated by comma) where at least one must be true</li></ul></td></tr><tr><td>Chains</td><td>Allowed: identifier, name</td></tr></table></div>"
  ] ;
  fhir:SearchParameter.url [ fhir:value "https://sfaa.gov.tw/base/SearchParameter/Observation-patient"] ;
  fhir:SearchParameter.name [ fhir:value "ObservationPatient"] ;
  fhir:SearchParameter.status [ fhir:value "active"] ;
  fhir:SearchParameter.date [ fhir:value "2026-08-10T08:34:13+00:00"^^xsd:dateTime] ;
  fhir:SearchParameter.publisher [ fhir:value "衛生福利部社會及家庭署"] ;
  fhir:SearchParameter.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "衛生福利部社會及家庭署" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.twss.gov.tw/" ]
     ]
  ] ;
  fhir:SearchParameter.description [ fhir:value "Observation 所對應的個案。"] ;
  fhir:SearchParameter.code [ fhir:value "patient"] ;
  fhir:SearchParameter.base [
     fhir:value "Observation" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.type [ fhir:value "reference"] ;
  fhir:SearchParameter.expression [ fhir:value "Observation.subject.where(resolve() is Patient)"] ;
  fhir:SearchParameter.target [
     fhir:value "Patient" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.chain [
     fhir:value "identifier" ;
     fhir:index 0
  ], [
     fhir:value "name" ;
     fhir:index 1
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/SearchParameter/Observation-patient.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

