FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/MedicationKnowledge4to5

Packagehl7.fhir.uv.xver
Resource TypeStructureMap
IdMedicationKnowledge4to5
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-MedicationKnowledge4to5.html
URLhttp://hl7.org/fhir/StructureMap/MedicationKnowledge4to5
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameMedicationKnowledge4to5
TitleMedicationKnowledge Transforms: R4 to R5
Realmuv
Authorityhl7
DescriptionMedicationKnowledgeTransformsR4toR5

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/MedicationKnowledge4to5'
/// name = 'MedicationKnowledge4to5'
/// title = 'MedicationKnowledge Transforms: R4 to R5'
/// status = 'active'

uses "http://hl7.org/fhir/4.0/MedicationKnowledge" alias MedicationKnowledgeR4 as source
uses "http://hl7.org/fhir/5.0/MedicationKnowledge" alias MedicationKnowledgeR5 as target

imports "http://hl7.org/fhir/StructureMap/*4to5"

group MedicationKnowledge(source src : MedicationKnowledgeR4, target tgt : MedicationKnowledgeR5) extends DomainResource <<type+>> {
  src.code -> tgt.code;
  src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/MedicationKnowledge.status-R4toR5', 'code');
  src.synonym -> tgt.name;
  src.relatedMedicationKnowledge as s -> tgt.relatedMedicationKnowledge as t then MedicationKnowledgeRelatedMedicationKnowledge(s, t);
  src.associatedMedication -> tgt.associatedMedication;
  src.productType -> tgt.productType;
  src.monograph as s -> tgt.monograph as t then MedicationKnowledgeMonograph(s, t);
  src.preparationInstruction -> tgt.preparationInstruction;
  src.cost as s -> tgt.cost as t then MedicationKnowledgeCost(s, t);
  src.monitoringProgram as s -> tgt.monitoringProgram as t then MedicationKnowledgeMonitoringProgram(s, t);
  src.administrationGuidelines as s -> tgt.indicationGuideline as t then MedicationKnowledgeIndicationGuideline(s, t);
  src.medicineClassification as s -> tgt.medicineClassification as t then MedicationKnowledgeMedicineClassification(s, t);
  src.regulatory as s -> tgt.regulatory as t then MedicationKnowledgeRegulatory(s, t);
  src.drugCharacteristic as s -> tgt.definitional as t then MedicationKnowledgeDefinitional(s, t);
}

group MedicationKnowledgeRelatedMedicationKnowledge(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.reference -> tgt.reference;
}

group MedicationKnowledgeMonograph(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.source -> tgt.source;
}

group MedicationKnowledgeCost(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.source -> tgt.source;
  src.cost : Money -> tgt.cost;
}

group MedicationKnowledgeMonitoringProgram(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.name -> tgt.name;
}

group MedicationKnowledgeIndicationGuideline(source src, target tgt) extends BackboneElement {
  src.indication : CodeableConcept -> tgt.indication;
  src.indication : Reference -> tgt.indication;
  src.dosage as s ->  tgt.dosingGuideline as t,  t.dosage = create('BackboneElement') as td then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s, td);
  src.patientCharacteristics as s -> tgt.dosingGuideline as t then {
    s.value as v ->  t.patientCharacteristic as tp,  tp.type = create('CodeableConcept') as tc,  tc.text = v;
    s.characteristic : CodeableConcept as v ->  t.patientCharacteristic as tp,  tp.value = v;
    s.characteristic : Quantity as v ->  t.patientCharacteristic as tp,  tp.value = v;
  };
}

// group MedicationKnowledgeIndicationGuidelineDosingGuideline(source src, target tgt) extends BackboneElement {
// src.treatmentIntent -> tgt.treatmentIntent;
// src as s -> tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);
// src.administrationTreatment -> tgt.administrationTreatment;
// src.patientCharacteristic as s -> tgt.patientCharacteristic as t then MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(s,t);
// }
group MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.dosage -> tgt.dosage;
}

// group MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(source src, target tgt) extends BackboneElement {
// src.type -> tgt.type;
// src.value : CodeableConcept -> tgt.value;
// src.value : Quantity -> tgt.value;
// src.value : Range -> tgt.value;
// }
group MedicationKnowledgeMedicineClassification(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.classification -> tgt.classification;
}

// group MedicationKnowledgePackaging(source src, target tgt) extends BackboneElement {
// src.packagedProduct -> tgt.packagedProduct;
// }
// group MedicationKnowledgeStorageGuideline(source src, target tgt) extends BackboneElement {
// src.reference -> tgt.reference;
// src.note -> tgt.note;
// src.stabilityDuration -> tgt.stabilityDuration;
// src.environmentalSetting as s -> tgt.environmentalSetting as t then MedicationKnowledgeStorageGuidelineEnvironmentalSetting(s,t);
// }
// group MedicationKnowledgeStorageGuidelineEnvironmentalSetting(source src, target tgt) extends BackboneElement {
// src.type -> tgt.type;
// src.value : Quantity -> tgt.value;
// src.value : Range -> tgt.value;
// src.value : CodeableConcept -> tgt.value;
// }
group MedicationKnowledgeRegulatory(source src, target tgt) extends BackboneElement {
  src.regulatoryAuthority -> tgt.regulatoryAuthority;
  src.substitution as s -> tgt.substitution as t then MedicationKnowledgeRegulatorySubstitution(s, t);
  src.schedule as s -> tgt.schedule = s.schedule;
  src.maxDispense as s -> tgt.maxDispense as t then MedicationKnowledgeRegulatoryMaxDispense(s, t);
}

group MedicationKnowledgeRegulatorySubstitution(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.allowed -> tgt.allowed;
}

group MedicationKnowledgeRegulatoryMaxDispense(source src, target tgt) extends BackboneElement {
  src.quantity -> tgt.quantity;
  src.period -> tgt.period;
}

group MedicationKnowledgeDefinitional(source src, target tgt) extends BackboneElement {
  src.type as s ->  tgt.drugCharacteristic as t,  t.type = s;
  src.value : CodeableConcept as s ->  tgt.drugCharacteristic as t,  t.value = s;
  src.value : string as s ->  tgt.drugCharacteristic as t,  t.value = s;
  src.value : Quantity as s ->  tgt.drugCharacteristic as t,  t.value = s;
  src.value : base64Binary as s ->  tgt.drugCharacteristic as t,  t.value = s;
}


Source

{
  "resourceType": "StructureMap",
  "id": "MedicationKnowledge4to5",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1,
      "_valueInteger": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/StructureMap/MedicationKnowledge4to5",
  "version": "0.1.0",
  "name": "MedicationKnowledge4to5",
  "title": "MedicationKnowledge Transforms: R4 to R5",
  "status": "active",
  "date": "2024-02-22T03:16:50+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "MedicationKnowledgeTransformsR4toR5",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/4.0/MedicationKnowledge",
      "mode": "source",
      "alias": "MedicationKnowledgeR4"
    },
    {
      "url": "http://hl7.org/fhir/5.0/MedicationKnowledge",
      "mode": "target",
      "alias": "MedicationKnowledgeR5"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/*4to5"
  ],
  "group": [
    {
      "name": "MedicationKnowledge",
      "extends": "DomainResource",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "MedicationKnowledgeR4",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "MedicationKnowledgeR5",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "code",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "status",
          "source": [
            {
              "context": "src",
              "element": "status",
              "variable": "v"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "status",
              "transform": "translate",
              "parameter": [
                {
                  "valueId": "v"
                },
                {
                  "valueString": "http://hl7.org/fhir/ConceptMap/MedicationKnowledge.status-R4toR5"
                },
                {
                  "valueString": "code"
                }
              ]
            }
          ]
        },
        {
          "name": "synonym",
          "source": [
            {
              "context": "src",
              "element": "synonym",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "name",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "relatedMedicationKnowledge",
          "source": [
            {
              "context": "src",
              "element": "relatedMedicationKnowledge",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "relatedMedicationKnowledge",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeRelatedMedicationKnowledge",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "associatedMedication",
          "source": [
            {
              "context": "src",
              "element": "associatedMedication",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "associatedMedication",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "productType",
          "source": [
            {
              "context": "src",
              "element": "productType",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "productType",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "monograph",
          "source": [
            {
              "context": "src",
              "element": "monograph",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "monograph",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeMonograph",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "preparationInstruction",
          "source": [
            {
              "context": "src",
              "element": "preparationInstruction",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "preparationInstruction",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "cost",
          "source": [
            {
              "context": "src",
              "element": "cost",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "cost",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeCost",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "monitoringProgram",
          "source": [
            {
              "context": "src",
              "element": "monitoringProgram",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "monitoringProgram",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeMonitoringProgram",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "administrationGuidelines",
          "source": [
            {
              "context": "src",
              "element": "administrationGuidelines",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "indicationGuideline",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeIndicationGuideline",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "medicineClassification",
          "source": [
            {
              "context": "src",
              "element": "medicineClassification",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "medicineClassification",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeMedicineClassification",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "regulatory",
          "source": [
            {
              "context": "src",
              "element": "regulatory",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "regulatory",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeRegulatory",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "drugCharacteristic",
          "source": [
            {
              "context": "src",
              "element": "drugCharacteristic",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "definitional",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeDefinitional",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeRelatedMedicationKnowledge",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "reference",
          "source": [
            {
              "context": "src",
              "element": "reference",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "reference",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeMonograph",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "source",
          "source": [
            {
              "context": "src",
              "element": "source",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "source",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeCost",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "source",
          "source": [
            {
              "context": "src",
              "element": "source",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "source",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "costMoney",
          "source": [
            {
              "context": "src",
              "type": "Money",
              "element": "cost",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "cost",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeMonitoringProgram",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "name",
          "source": [
            {
              "context": "src",
              "element": "name",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "name",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeIndicationGuideline",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "indicationCodeableConcept",
          "source": [
            {
              "context": "src",
              "type": "CodeableConcept",
              "element": "indication",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "indication",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "indicationReference",
          "source": [
            {
              "context": "src",
              "type": "Reference",
              "element": "indication",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "indication",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "dosage",
          "source": [
            {
              "context": "src",
              "element": "dosage",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "dosingGuideline",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "dosage",
              "variable": "td",
              "transform": "create",
              "parameter": [
                {
                  "valueString": "BackboneElement"
                }
              ]
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "td"
                }
              ]
            }
          ]
        },
        {
          "name": "patientCharacteristics",
          "source": [
            {
              "context": "src",
              "element": "patientCharacteristics",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "dosingGuideline",
              "variable": "t"
            }
          ],
          "rule": [
            {
              "name": "value",
              "source": [
                {
                  "context": "s",
                  "element": "value",
                  "variable": "v"
                }
              ],
              "target": [
                {
                  "context": "t",
                  "element": "patientCharacteristic",
                  "variable": "tp"
                },
                {
                  "context": "tp",
                  "element": "type",
                  "variable": "tc",
                  "transform": "create",
                  "parameter": [
                    {
                      "valueString": "CodeableConcept"
                    }
                  ]
                },
                {
                  "context": "tc",
                  "element": "text",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "v"
                    }
                  ]
                }
              ]
            },
            {
              "name": "characteristicCodeableConcept",
              "source": [
                {
                  "context": "s",
                  "type": "CodeableConcept",
                  "element": "characteristic",
                  "variable": "v"
                }
              ],
              "target": [
                {
                  "context": "t",
                  "element": "patientCharacteristic",
                  "variable": "tp"
                },
                {
                  "context": "tp",
                  "element": "value",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "v"
                    }
                  ]
                }
              ]
            },
            {
              "name": "characteristicQuantity",
              "source": [
                {
                  "context": "s",
                  "type": "Quantity",
                  "element": "characteristic",
                  "variable": "v"
                }
              ],
              "target": [
                {
                  "context": "t",
                  "element": "patientCharacteristic",
                  "variable": "tp"
                },
                {
                  "context": "tp",
                  "element": "value",
                  "transform": "copy",
                  "parameter": [
                    {
                      "valueId": "v"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage",
      "extends": "BackboneElement",
      "documentation": "group MedicationKnowledgeIndicationGuidelineDosingGuideline(source src, target tgt) extends BackboneElement {\r\nsrc.treatmentIntent -> tgt.treatmentIntent;\r\nsrc as s -> tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);\r\nsrc.administrationTreatment -> tgt.administrationTreatment;\r\nsrc.patientCharacteristic as s -> tgt.patientCharacteristic as t then MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(s,t);\r\n}",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "dosage",
          "source": [
            {
              "context": "src",
              "element": "dosage",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "dosage",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeMedicineClassification",
      "extends": "BackboneElement",
      "documentation": "group MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(source src, target tgt) extends BackboneElement {\r\nsrc.type -> tgt.type;\r\nsrc.value : CodeableConcept -> tgt.value;\r\nsrc.value : Quantity -> tgt.value;\r\nsrc.value : Range -> tgt.value;\r\n}",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "classification",
          "source": [
            {
              "context": "src",
              "element": "classification",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "classification",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeRegulatory",
      "extends": "BackboneElement",
      "documentation": "group MedicationKnowledgePackaging(source src, target tgt) extends BackboneElement {\r\nsrc.packagedProduct -> tgt.packagedProduct;\r\n}\r\ngroup MedicationKnowledgeStorageGuideline(source src, target tgt) extends BackboneElement {\r\nsrc.reference -> tgt.reference;\r\nsrc.note -> tgt.note;\r\nsrc.stabilityDuration -> tgt.stabilityDuration;\r\nsrc.environmentalSetting as s -> tgt.environmentalSetting as t then MedicationKnowledgeStorageGuidelineEnvironmentalSetting(s,t);\r\n}\r\ngroup MedicationKnowledgeStorageGuidelineEnvironmentalSetting(source src, target tgt) extends BackboneElement {\r\nsrc.type -> tgt.type;\r\nsrc.value : Quantity -> tgt.value;\r\nsrc.value : Range -> tgt.value;\r\nsrc.value : CodeableConcept -> tgt.value;\r\n}",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "regulatoryAuthority",
          "source": [
            {
              "context": "src",
              "element": "regulatoryAuthority",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "regulatoryAuthority",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "substitution",
          "source": [
            {
              "context": "src",
              "element": "substitution",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "substitution",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeRegulatorySubstitution",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "schedule",
          "source": [
            {
              "context": "src",
              "element": "schedule",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "schedule",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s.schedule"
                }
              ]
            }
          ]
        },
        {
          "name": "maxDispense",
          "source": [
            {
              "context": "src",
              "element": "maxDispense",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "maxDispense",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "MedicationKnowledgeRegulatoryMaxDispense",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeRegulatorySubstitution",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "allowed",
          "source": [
            {
              "context": "src",
              "element": "allowed",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "allowed",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeRegulatoryMaxDispense",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "quantity",
          "source": [
            {
              "context": "src",
              "element": "quantity",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "quantity",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "period",
          "source": [
            {
              "context": "src",
              "element": "period",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "period",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "MedicationKnowledgeDefinitional",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "drugCharacteristic",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "type",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s"
                }
              ]
            }
          ]
        },
        {
          "name": "valueCodeableConcept",
          "source": [
            {
              "context": "src",
              "type": "CodeableConcept",
              "element": "value",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "drugCharacteristic",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "value",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s"
                }
              ]
            }
          ]
        },
        {
          "name": "valueString",
          "source": [
            {
              "context": "src",
              "type": "string",
              "element": "value",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "drugCharacteristic",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "value",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s"
                }
              ]
            }
          ]
        },
        {
          "name": "valueQuantity",
          "source": [
            {
              "context": "src",
              "type": "Quantity",
              "element": "value",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "drugCharacteristic",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "value",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s"
                }
              ]
            }
          ]
        },
        {
          "name": "valueBase64Binary",
          "source": [
            {
              "context": "src",
              "type": "base64Binary",
              "element": "value",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "drugCharacteristic",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "value",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "s"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}