@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://gematik.de/fhir/isik/SearchParameter/Encounter-date-start> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Encounter-date-start"] ;
  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 Encounter-date-start</b></p><a name=\"Encounter-date-start\"> </a><a name=\"hcEncounter-date-start\"> </a><h2>DateStart</h2><p>Parameter <code>date-start</code>:<code>date</code></p><div><p>The actual start date of the Encounter (Backport from R5). The parameter cannot repeat or have multiple values.</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></td></tr><tr><td>Expression</td><td><code>Encounter.period.start</code></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>Comparators</td><td>Allowed: eq, ne, gt, ge, lt, le, sa, eb, ap</td></tr></table></div>"
  ] ;
  fhir:SearchParameter.url [ fhir:value "https://gematik.de/fhir/isik/SearchParameter/Encounter-date-start"] ;
  fhir:SearchParameter.version [ fhir:value "6.0.0"] ;
  fhir:SearchParameter.name [ fhir:value "DateStart"] ;
  fhir:SearchParameter.status [ fhir:value "active"] ;
  fhir:SearchParameter.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:SearchParameter.date [ fhir:value "2026-07-01"^^xsd:date] ;
  fhir:SearchParameter.publisher [ fhir:value "gematik GmbH"] ;
  fhir:SearchParameter.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "gematik GmbH" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://gematik.de" ]
     ]
  ] ;
  fhir:SearchParameter.description [ fhir:value "The actual start date of the Encounter (Backport from R5). The parameter cannot repeat or have multiple values."] ;
  fhir:SearchParameter.code [ fhir:value "date-start"] ;
  fhir:SearchParameter.base [
     fhir:value "Encounter" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.type [ fhir:value "date"] ;
  fhir:SearchParameter.expression [ fhir:value "Encounter.period.start"] ;
  fhir:SearchParameter.comparator [
     fhir:value "eq" ;
     fhir:index 0
  ], [
     fhir:value "ne" ;
     fhir:index 1
  ], [
     fhir:value "gt" ;
     fhir:index 2
  ], [
     fhir:value "ge" ;
     fhir:index 3
  ], [
     fhir:value "lt" ;
     fhir:index 4
  ], [
     fhir:value "le" ;
     fhir:index 5
  ], [
     fhir:value "sa" ;
     fhir:index 6
  ], [
     fhir:value "eb" ;
     fhir:index 7
  ], [
     fhir:value "ap" ;
     fhir:index 8
  ] .

# - ontology header ------------------------------------------------------------

<https://gematik.de/fhir/isik/SearchParameter/Encounter-date-start.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

