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