Package | hl7.fhir.uv.xver |
Resource Type | StructureMap |
Id | MedicinalProductDefinition4to5 |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-MedicinalProductDefinition4to5.html |
URL | http://hl7.org/fhir/StructureMap/MedicinalProductDefinition4to5 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | MedicinalProductDefinition4to5 |
Title | MedicinalProductDefinition Transforms: R4 to R5 |
Realm | uv |
Authority | hl7 |
Description | MedicinalProductDefinitionTransformsR4toR5 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/MedicinalProductDefinition4to5' /// name = 'MedicinalProductDefinition4to5' /// title = 'MedicinalProductDefinition Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/MedicinalProduct" alias MedicinalProductR4 as source uses "http://hl7.org/fhir/5.0/MedicinalProductDefinition" alias MedicinalProductDefinitionR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group MedicinalProductDefinition(source src : MedicinalProductR4, target tgt : MedicinalProductDefinitionR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.type -> tgt.type; src.domain -> tgt.domain; src.combinedPharmaceuticalDoseForm -> tgt.combinedPharmaceuticalDoseForm; src.legalStatusOfSupply -> tgt.legalStatusOfSupply; src.additionalMonitoringIndicator -> tgt.additionalMonitoringIndicator; src.specialMeasures -> tgt.specialMeasures; src.paediatricUseIndicator -> tgt.pediatricUseIndicator; src.productClassification -> tgt.classification; src.marketingStatus -> tgt.marketingStatus; src.attachedDocument -> tgt.attachedDocument; src.masterFile -> tgt.masterFile; src.contact as s -> tgt.contact as t, t.contact = s; src.clinicalTrial -> tgt.clinicalTrial; src.name as s -> tgt.name as t then MedicinalProductDefinitionName(s, t); src.manufacturingBusinessOperation as s -> tgt.operation as t then MedicinalProductDefinitionOperation(s, t); } // group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement { // src.type -> tgt.type; // src.contact -> tgt.contact; // } group MedicinalProductDefinitionName(source src, target tgt) extends BackboneElement { src.productName -> tgt.productName; src.namePart as s -> tgt.part as t then MedicinalProductDefinitionNamePart(s, t); src.countryLanguage as s -> tgt.usage as t then MedicinalProductDefinitionNameUsage(s, t); } group MedicinalProductDefinitionNamePart(source src, target tgt) extends BackboneElement { src.part -> tgt.part; src.type -> tgt.type; } group MedicinalProductDefinitionNameUsage(source src, target tgt) extends BackboneElement { src.country -> tgt.country; src.jurisdiction -> tgt.jurisdiction; src.language -> tgt.language; } // group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement { // src.product -> tgt.product; // src.type -> tgt.type; // } group MedicinalProductDefinitionOperation(source src, target tgt) extends BackboneElement { src.operationType -> tgt.type; src.effectiveDate : dateTime as s -> tgt.effectiveDate as t, t.start = s; src.manufacturer -> tgt.organization; src.confidentialityIndicator -> tgt.confidentialityIndicator; }
{ "resourceType": "StructureMap", "id": "MedicinalProductDefinition4to5", "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/MedicinalProductDefinition4to5", "version": "0.1.0", "name": "MedicinalProductDefinition4to5", "title": "MedicinalProductDefinition 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": "MedicinalProductDefinitionTransformsR4toR5", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "structure": [ { "url": "http://hl7.org/fhir/4.0/MedicinalProduct", "mode": "source", "alias": "MedicinalProductR4" }, { "url": "http://hl7.org/fhir/5.0/MedicinalProductDefinition", "mode": "target", "alias": "MedicinalProductDefinitionR5" } ], "import": [ "http://hl7.org/fhir/StructureMap/*4to5" ], "group": [ { "name": "MedicinalProductDefinition", "extends": "DomainResource", "typeMode": "type-and-types", "input": [ { "name": "src", "type": "MedicinalProductR4", "mode": "source" }, { "name": "tgt", "type": "MedicinalProductDefinitionR5", "mode": "target" } ], "rule": [ { "name": "identifier", "source": [ { "context": "src", "element": "identifier", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "identifier", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "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": "domain", "source": [ { "context": "src", "element": "domain", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "domain", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "combinedPharmaceuticalDoseForm", "source": [ { "context": "src", "element": "combinedPharmaceuticalDoseForm", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "combinedPharmaceuticalDoseForm", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "legalStatusOfSupply", "source": [ { "context": "src", "element": "legalStatusOfSupply", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "legalStatusOfSupply", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "additionalMonitoringIndicator", "source": [ { "context": "src", "element": "additionalMonitoringIndicator", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "additionalMonitoringIndicator", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "specialMeasures", "source": [ { "context": "src", "element": "specialMeasures", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "specialMeasures", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "paediatricUseIndicator", "source": [ { "context": "src", "element": "paediatricUseIndicator", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "pediatricUseIndicator", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "productClassification", "source": [ { "context": "src", "element": "productClassification", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "classification", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "marketingStatus", "source": [ { "context": "src", "element": "marketingStatus", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "marketingStatus", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "attachedDocument", "source": [ { "context": "src", "element": "attachedDocument", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "attachedDocument", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "masterFile", "source": [ { "context": "src", "element": "masterFile", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "masterFile", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "contact", "source": [ { "context": "src", "element": "contact", "variable": "s" } ], "target": [ { "context": "tgt", "element": "contact", "variable": "t" }, { "context": "t", "element": "contact", "transform": "copy", "parameter": [ { "valueId": "s" } ] } ] }, { "name": "clinicalTrial", "source": [ { "context": "src", "element": "clinicalTrial", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "clinicalTrial", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "name", "source": [ { "context": "src", "element": "name", "variable": "s" } ], "target": [ { "context": "tgt", "element": "name", "variable": "t" } ], "dependent": [ { "name": "MedicinalProductDefinitionName", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] }, { "name": "manufacturingBusinessOperation", "source": [ { "context": "src", "element": "manufacturingBusinessOperation", "variable": "s" } ], "target": [ { "context": "tgt", "element": "operation", "variable": "t" } ], "dependent": [ { "name": "MedicinalProductDefinitionOperation", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "MedicinalProductDefinitionName", "extends": "BackboneElement", "documentation": "group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement {\r\nsrc.type -> tgt.type;\r\nsrc.contact -> tgt.contact;\r\n}", "input": [ { "name": "src", "mode": "source" }, { "name": "tgt", "mode": "target" } ], "rule": [ { "name": "productName", "source": [ { "context": "src", "element": "productName", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "productName", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "namePart", "source": [ { "context": "src", "element": "namePart", "variable": "s" } ], "target": [ { "context": "tgt", "element": "part", "variable": "t" } ], "dependent": [ { "name": "MedicinalProductDefinitionNamePart", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] }, { "name": "countryLanguage", "source": [ { "context": "src", "element": "countryLanguage", "variable": "s" } ], "target": [ { "context": "tgt", "element": "usage", "variable": "t" } ], "dependent": [ { "name": "MedicinalProductDefinitionNameUsage", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "MedicinalProductDefinitionNamePart", "extends": "BackboneElement", "input": [ { "name": "src", "mode": "source" }, { "name": "tgt", "mode": "target" } ], "rule": [ { "name": "part", "source": [ { "context": "src", "element": "part", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "part", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "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": "MedicinalProductDefinitionNameUsage", "extends": "BackboneElement", "input": [ { "name": "src", "mode": "source" }, { "name": "tgt", "mode": "target" } ], "rule": [ { "name": "country", "source": [ { "context": "src", "element": "country", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "country", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "jurisdiction", "source": [ { "context": "src", "element": "jurisdiction", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "jurisdiction", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "language", "source": [ { "context": "src", "element": "language", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "language", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] } ] }, { "name": "MedicinalProductDefinitionOperation", "extends": "BackboneElement", "documentation": "group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement {\r\nsrc.product -> tgt.product;\r\nsrc.type -> tgt.type;\r\n}", "input": [ { "name": "src", "mode": "source" }, { "name": "tgt", "mode": "target" } ], "rule": [ { "name": "operationType", "source": [ { "context": "src", "element": "operationType", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "type", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "effectiveDateDateTime", "source": [ { "context": "src", "type": "dateTime", "element": "effectiveDate", "variable": "s" } ], "target": [ { "context": "tgt", "element": "effectiveDate", "variable": "t" }, { "context": "t", "element": "start", "transform": "copy", "parameter": [ { "valueId": "s" } ] } ] }, { "name": "manufacturer", "source": [ { "context": "src", "element": "manufacturer", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "organization", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "confidentialityIndicator", "source": [ { "context": "src", "element": "confidentialityIndicator", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "confidentialityIndicator", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] } ] } ] }