@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://profiles.ihe.net/Pharm/unicom-transactions/OperationDefinition/Product-substitutes> a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Product-substitutes"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>URL: [base]/$substitutes</p><p>URL: [base]/Medication/$substitutes</p><p>URL: [base]/Medication/[id]/$substitutes</p><p>URL: [base]/MedicationKnowledge/$substitutes</p><p>URL: [base]/MedicationKnowledge/[id]/$substitutes</p><p>URL: [base]/MedicinalProductDefinition/$substitutes</p><p>URL: [base]/MedicinalProductDefinition/[id]/$substitutes</p><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>country</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>The context in which the substitution is being executed, meaning the rules for substitution that are to be applied. Typically and by default the code for the country where the substitution is taking place.</p>\n</div></td></tr><tr><td>IN</td><td>doseform</td><td>instance</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>The dose form. This coded element can include codes from different codesystems - which will determine the possibility of finding a substtitute. Some systems may optionally support a search based on display text besides the coded form.</p>\n</div></td></tr><tr><td>IN</td><td>ingredient</td><td>instance</td><td>0..*</td><td></td><td/><td><div><p>Each relevant ingredient to find substitutes - each ingredient has 2 parts - the substance and the strength</p>\n</div></td></tr><tr><td>IN</td><td>ingredient.substance</td><td>instance</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>The substance that will be used to search. Substance SHALL be a coded parameter</p>\n</div></td></tr><tr><td>IN</td><td>ingredient.strength</td><td>instance</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#RatioRange\">RatioRange</a></td><td/><td><div><p>The strength of the substance that will be used to search. It is a RatioRange property: if the value is a fixed value, either minimum or maximum denominator are used (or both). Denominator is optional.</p>\n</div></td></tr></table></div>"
  ] ; # 
  fhir:url [ fhir:v "https://profiles.ihe.net/Pharm/unicom-transactions/OperationDefinition/Product-substitutes"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.0.1"] ; # 
  fhir:name [ fhir:v "ProductSubstitutes"] ; # 
  fhir:title [ fhir:v "Product substitutes"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:experimental [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2023-05-19T02:57:50+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "UNICOM"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://unicom-project-eu" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "unicom@example.com" ]
     ] )
  ] [
     fhir:name [ fhir:v "UNICOM" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "iti@ihe.net" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Operation to find product substitutes given the relevant attributes and the substitution context"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:affectsState [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:code [ fhir:v "substitutes"] ; # 
  fhir:resource ( [ fhir:v "Medication"] [ fhir:v "MedicationKnowledge"] [ fhir:v "MedicinalProductDefinition"] ) ; # 
  fhir:system [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:type [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:instance [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "country" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0"^^xsd:integer ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The context in which the substitution is being executed, meaning the rules for substitution that are to be applied. Typically and by default the code for the country where the substitution is taking place. " ] ;
     fhir:type [ fhir:v "Coding" ]
  ] [
     fhir:name [ fhir:v "doseform" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:scope ( [ fhir:v "instance" ] ) ;
     fhir:min [ fhir:v "0"^^xsd:integer ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The dose form. This coded element can include codes from different codesystems - which will determine the possibility of finding a substtitute. Some systems may optionally support a search based on display text besides the coded form." ] ;
     fhir:type [ fhir:v "Coding" ]
  ] [
     fhir:name [ fhir:v "ingredient" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:scope ( [ fhir:v "instance" ] ) ;
     fhir:min [ fhir:v "0"^^xsd:integer ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:documentation [ fhir:v "Each relevant ingredient to find substitutes - each ingredient has 2 parts - the substance and the strength" ] ;
     fhir:part ( [
       fhir:name [ fhir:v "substance" ] ;
       fhir:use [ fhir:v "in" ] ;
       fhir:scope ( [ fhir:v "instance" ] ) ;
       fhir:min [ fhir:v "1"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "The substance that will be used to search. Substance SHALL be a coded parameter" ] ;
       fhir:type [ fhir:v "Coding" ]
     ] [
       fhir:name [ fhir:v "strength" ] ;
       fhir:use [ fhir:v "in" ] ;
       fhir:scope ( [ fhir:v "instance" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "The strength of the substance that will be used to search. It is a RatioRange property: if the value is a fixed value, either minimum or maximum denominator are used (or both). Denominator is optional." ] ;
       fhir:type [ fhir:v "RatioRange" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

