Skip to content

Commit

Permalink
Merge pull request #408 from edmcouncil/IDMP-420
Browse files Browse the repository at this point in the history
IDMP-420 - Update Terlipressin Example for reference strength
  • Loading branch information
ElisaKendall authored Jul 7, 2023
2 parents 81fea77 + 80498c8 commit 091a9cf
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 56,108 deletions.
12 changes: 12 additions & 0 deletions EXT/Examples/AmlodipineExample.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,32 @@

<owl:NamedIndividual rdf:about="&idmp-amp;AmlodipineAsReferenceStrengthInAmlodipineEMCStrength">
<rdf:type rdf:resource="&idmp-mprd;MassBasedStrength"/>
<rdf:type rdf:resource="&idmp-mprd;PresentationStrength"/>
<rdf:type rdf:resource="&idmp-mprd;ReferenceStrength"/>
<rdfs:label>amlodipine as reference strength in Amlodipine EMC strength</rdfs:label>
<idmp-mprd:hasReferenceIngredientRole rdf:resource="&idmp-amp;AmlodipineAsReferenceSubstance"/>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-amp;Amlodipine"/>
<cmns-qtu:hasDenominator rdf:resource="&idmp-amp;AmlodipineDenominatorInAmlodipineEMCPresentationStrength"/>
<cmns-qtu:hasNumerator rdf:resource="&idmp-amp;AmlodipineNumeratorInAmlodipineEMCPresentationStrength"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-amp;AmlodipineAsReferenceStrengthInNorvascPresentationStrength">
<rdf:type rdf:resource="&idmp-mprd;MassBasedStrength"/>
<rdf:type rdf:resource="&idmp-mprd;PresentationStrength"/>
<rdf:type rdf:resource="&idmp-mprd;ReferenceStrength"/>
<rdfs:label>amlodipine as reference strength in Norvasc presentation strength</rdfs:label>
<idmp-mprd:hasReferenceIngredientRole rdf:resource="&idmp-amp;AmlodipineAsReferenceSubstance"/>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-amp;Amlodipine"/>
<cmns-qtu:hasDenominator rdf:resource="&idmp-amp;AmlodipineDenominatorInNorvascPresentationStrength"/>
<cmns-qtu:hasNumerator rdf:resource="&idmp-amp;AmlodipineNumeratorInNorvascPresentationStrength"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-amp;AmlodipineAsReferenceSubstance">
<rdf:type rdf:resource="&idmp-mprd;ActiveIngredientActiveMoietyBasisOfStrength"/>
<rdfs:label>amlodipine as reference substance</rdfs:label>
<cmns-pts:isPlayedBy rdf:resource="&idmp-amp;Amlodipine"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-amp;AmlodipineBesylate">
<rdf:type rdf:resource="&idmp-sub;ChemicalSubstance"/>
<rdf:type rdf:resource="&idmp-sub;Salt"/>
Expand Down
37 changes: 20 additions & 17 deletions EXT/Examples/TerlipressinExample.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAcetatePresentationStrengthInTerlipressinAcetateSUN1MgPerAmpouleSolutionForInjection">
<rdf:type rdf:resource="&idmp-mprd;MassBasedStrength"/>
<rdf:type rdf:resource="&idmp-mprd;PresentationStrength"/>
<rdfs:label>terlipressin acetate presentation strength in terlipressin SUN 1 mg per ampoule solution for injection</rdfs:label>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-trlp;TerlipressinAcetate"/>
<cmns-qtu:hasDenominator rdf:resource="&idmp-trlp;TerlipressinAcetateDenominatorInTerlipressinSUN1MgSolutionForInjectionPresentationStrength"/>
Expand Down Expand Up @@ -330,7 +331,7 @@
<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAcetateSUN0.12MgPerMlSolutionForInjectionComposition">
<rdf:type rdf:resource="&idmp-mprd;ProductComposition"/>
<rdfs:label>terlipressin acetate SUN 0.12 mg/ml solution for injection composition</rdfs:label>
<idmp-sub:hasIngredient rdf:resource="&idmp-trlp;TerlipressinAsReferenceStrengthInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<idmp-mprd:hasActiveIngredient rdf:resource="&idmp-trlp;TerlipressinAcetateStrengthAsManufacturedInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<cmns-dsg:defines rdf:resource="&idmp-trlp;TerlipressinAcetateSUN0.12MgPerMlSolutionForInjection"/>
<cmns-rga:isApplicableInJurisdiction rdf:resource="&lcc-3166-1;UnitedKingdomOfGreatBritainAndNorthernIreland"/>
</owl:NamedIndividual>
Expand Down Expand Up @@ -370,7 +371,19 @@
<idmp-mprd:hasStrength rdf:resource="&idmp-trlp;TerlipressinAcetateConcentrationStrengthInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<idmp-mprd:hasStrength rdf:resource="&idmp-trlp;TerlipressinAcetatePresentationStrengthInTerlipressinAcetateSUN1MgPerAmpouleSolutionForInjection"/>
<cmns-pts:isPlayedBy rdf:resource="&idmp-trlp;TerlipressinAcetate"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinAcetateSUNComposition"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinAcetateSUN0.12MgPerMlSolutionForInjectionComposition"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAsActiveIngredientInTerlipressinAcetate1MgPerAmpouleSolutionForInjection">
<rdf:type rdf:resource="&idmp-mprd;ActiveIngredientActiveMoietyBasisOfStrength"/>
<rdfs:label>terlipressin as active ingredient in terlipressin acetate 1 mg per ampoule solution for injection</rdfs:label>
<skos:definition>terlipressin in the role of an active moiety that provides the reference strength in terlipressin acetate 1 mg per ampoule solution for injection</skos:definition>
<idmp-mprd:hasReferenceStrength rdf:resource="&idmp-trlp;TerlipressinAsReferenceConcentrationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection"/>
<idmp-mprd:hasReferenceStrength rdf:resource="&idmp-trlp;TerlipressinAsReferencePresentationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection"/>
<cmns-pts:isPlayedBy rdf:resource="&idmp-trlp;Terlipressin"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinAcetateSUN0.12MgPerMlSolutionForInjectionComposition"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinSUN0.1MgPerMlSolutionForInjectionComposition"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinSUN1MgSolutionForInjectionComposition"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAsActiveMoiety">
Expand All @@ -385,6 +398,7 @@
<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAsReferenceConcentrationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection">
<rdf:type rdf:resource="&idmp-mprd;Concentration"/>
<rdf:type rdf:resource="&idmp-mprd;MassBasedStrength"/>
<rdf:type rdf:resource="&idmp-mprd;ReferenceStrength"/>
<rdfs:label>terlipressin as reference (concentration) strength in terlipressin acetate 1 mg/ml solution for injection</rdfs:label>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-trlp;Terlipressin"/>
<cmns-qtu:hasDenominator rdf:resource="&idmp-trlp;TerlipressinDenominatorInTerlipressinAcetate1MgPerMlSolutionForInjectionConcentrationStrength"/>
Expand All @@ -393,24 +407,14 @@

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAsReferencePresentationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection">
<rdf:type rdf:resource="&idmp-mprd;MassBasedStrength"/>
<rdf:type rdf:resource="&idmp-mprd;PresentationStrength"/>
<rdf:type rdf:resource="&idmp-mprd;ReferenceStrength"/>
<rdfs:label>terlipressin as reference (presentation) strength in terlipressin acetate 1 mg/ml solution for injection</rdfs:label>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-trlp;Terlipressin"/>
<cmns-qtu:hasDenominator rdf:resource="&idmp-trlp;TerlipressinDenominatorInTerlipressinAcetate1MgPerMlSolutionForInjectionPresentationStrength"/>
<cmns-qtu:hasNumerator rdf:resource="&idmp-trlp;TerlipressinNumeratorInTerlipressinAcetate1MgPerMlSolutionForInjectionPresentationStrength"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinAsReferenceStrengthInTerlipressinAcetate1MgPerAmpouleSolutionForInjection">
<rdf:type rdf:resource="&idmp-mprd;ActiveIngredientActiveMoietyBasisOfStrength"/>
<rdfs:label>terlipressin as reference strength in terlipressin acetate 1 mg per ampoule solution for injection</rdfs:label>
<skos:definition>terlipressin in the role of an active moiety that provides the reference strength in terlipressin acetate 1 mg per ampoule solution for injection</skos:definition>
<idmp-mprd:hasReferenceStrength rdf:resource="&idmp-trlp;TerlipressinAsReferenceConcentrationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection"/>
<idmp-mprd:hasReferenceStrength rdf:resource="&idmp-trlp;TerlipressinAsReferencePresentationStrengthInTerlipressinAcetate1MgPerMlSolutionForInjection"/>
<cmns-pts:isPlayedBy rdf:resource="&idmp-trlp;Terlipressin"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinAcetateSUN0.12MgPerMlSolutionForInjectionComposition"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinSUN0.1MgPerMlSolutionForInjectionComposition"/>
<cmns-pts:isRealizedIn rdf:resource="&idmp-trlp;TerlipressinSUN1MgSolutionForInjectionComposition"/>
</owl:NamedIndividual>

<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinCommonName">
<rdf:type rdf:resource="&idmp-ra;InternationalNonproprietaryName"/>
<rdfs:label>terlipressin common name</rdfs:label>
Expand Down Expand Up @@ -512,8 +516,7 @@
<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinSUN0.1MgPerMlSolutionForInjectionComposition">
<rdf:type rdf:resource="&idmp-mprd;ProductComposition"/>
<rdfs:label>terlipressin SUN 0.1 mg/ml solution for injection composition</rdfs:label>
<idmp-sub:hasIngredient rdf:resource="&idmp-trlp;TerlipressinAsReferenceStrengthInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<idmp-mprd:hasReferenceSubstance rdf:resource="&idmp-trlp;Terlipressin"/>
<idmp-mprd:hasActiveIngredient rdf:resource="&idmp-trlp;TerlipressinAsActiveIngredientInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<cmns-dsg:defines rdf:resource="&idmp-trlp;TerlipressinSUN0.1MgPerMlSolutionForInjection"/>
<cmns-rga:isApplicableInJurisdiction rdf:resource="&lcc-3166-1;Netherlands"/>
</owl:NamedIndividual>
Expand Down Expand Up @@ -544,7 +547,7 @@
<owl:NamedIndividual rdf:about="&idmp-trlp;TerlipressinSUN1MgSolutionForInjectionComposition">
<rdf:type rdf:resource="&idmp-mprd;ProductComposition"/>
<rdfs:label>terlipressin SUN 1 mg solution for injection composition</rdfs:label>
<idmp-sub:hasIngredient rdf:resource="&idmp-trlp;TerlipressinAsReferenceStrengthInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<idmp-mprd:hasActiveIngredient rdf:resource="&idmp-trlp;TerlipressinAsActiveIngredientInTerlipressinAcetate1MgPerAmpouleSolutionForInjection"/>
<cmns-dsg:defines rdf:resource="&idmp-trlp;TerlipressinSUN1MgSolutionForInjection"/>
<cmns-rga:isApplicableInJurisdiction rdf:resource="&lcc-3166-1;Sweden"/>
</owl:NamedIndividual>
Expand Down
2 changes: 1 addition & 1 deletion etc/CQ/Example/uc1_cq3-1.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WHERE {

# Bind Variable Product <$Product>
# Example for AMPLODIPINE: <https://spec.pistoiaalliance.org/idmp/ontology/EXT/Examples/AmlodipineExample/Norvasc-ManufacturedItem>
# Example for Terlipressin: <https://spec.pistoiaalliance.org/idmp/ontology/EXT/Examples/TerlipressinExample/TerlipressinAcetateSUN>
# Example for Terlipressin: <https://spec.pistoiaalliance.org/idmp/ontology/EXT/Examples/TerlipressinExample/TerlipressinAcetateSUN-PharmaceuticalProduct>
BIND(uc1_cq3-1_parameter_2 AS $Product )

# Get $Product's active ingredient that is played by $Substace that has a Basis Of Strength
Expand Down
25 changes: 13 additions & 12 deletions etc/CQ/Example/uc1_cq3.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ WHERE {
BIND(uc1_cq3_parameter_1 AS $ActiveMoiety )

# Get Substances with active moiety $ActiveMoiety
{
# Use the shortcut (isActiveMoietyOf or hasActiveMoiety)
?Substance ^idmp-sub:isActiveMoietyOf|idmp-sub:hasActiveMoiety $ActiveMoiety .
} UNION {
# Use the $ActiveMoiety in a role for composition that defines a substance.
[] cmns-dsg:defines ?Substance ;
cmns-pts:hasRole [
a idmp-sub:ActiveMoietyRole ;
cmns-pts:isPlayedBy $ActiveMoiety
] .
}

{
# Use the shortcut (isActiveMoietyOf or hasActiveMoiety)
?Substance ^idmp-sub:isActiveMoietyOf|idmp-sub:hasActiveMoiety $ActiveMoiety .
} UNION {
# Use the $ActiveMoiety in a role for composition that defines a substance.
[] cmns-dsg:defines ?Substance ;
cmns-pts:hasRole [
a idmp-sub:ActiveMoietyRole ;
cmns-pts:isPlayedBy $ActiveMoiety
] .
} UNION {
BIND($ActiveMoiety AS ?Substance)
}

# Make sure that we only return actual substances
?Substance a/rdfs:subClassOf* idmp-sub:Substance .
Expand Down
Loading

0 comments on commit 091a9cf

Please sign in to comment.