@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://gematik.de/fhir/epa-medication/SearchParameter/derived-from-sp> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "derived-from-sp"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: SearchParameter derived-from-sp</b></p><a name=\"derived-from-sp\"> </a><a name=\"hcderived-from-sp\"> </a><h2>DerivedFromSP</h2><p>Parameter <code>derived-from</code>:<code>reference</code></p><div><p>Search by resources from which the medication statement is derived</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a></td></tr><tr><td>Expression</td><td><code>MedicationStatement.derivedFrom</code></td></tr><tr><td>Target Resources</td><td><a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>, <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a></td></tr><tr><td>Multiples</td><td><ul><li>multipleAnd: The parameter may repeat in order to specify multiple values that must all be true</li><li>multipleOr: The parameter may only have one value (no comma separators)</li></ul></td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "https://gematik.de/fhir/epa-medication/SearchParameter/derived-from-sp"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.2.0-ballot.2"] ; # 
  fhir:name [ fhir:v "DerivedFromSP"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2025-09-02"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "gematik GmbH"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "gematik GmbH" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.gematik.de" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "patientteam [ at ] gematik.de" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Search by resources from which the medication statement is derived"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "DE" ]
     ] )
  ] ) ; # 
  fhir:code [ fhir:v "derived-from"] ; # 
  fhir:base ( [ fhir:v "MedicationStatement"] ) ; # 
  fhir:type [ fhir:v "reference"] ; # 
  fhir:expression [ fhir:v "MedicationStatement.derivedFrom"] ; # 
  fhir:target ( [ fhir:v "MedicationDispense"] [ fhir:v "MedicationRequest"] ) ; # 
  fhir:multipleOr [ fhir:v false] ; # 
  fhir:multipleAnd [ fhir:v true] . # 

# -------------------------------------------------------------------------------------

