R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Biomedical Research and Regulation Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for SubstanceSpecification.

Functional status for this map: Not Mapped (see documentation)

map "http://hl7.org/fhir/StructureMap/SubstanceSpecification3to4" = "R3 to R4 Conversions for SubstanceSpecification"


uses "http://hl7.org/fhir/3.0/StructureDefinition/SubstanceSpecification" alias SubstanceSpecificationR3 as source
uses "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification" alias SubstanceSpecification as target

imports "http://hl7.org/fhir/StructureMap/*3to4"



group SubstanceSpecification extends DomainResource
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.comment": for src.comment make tgt.comment
  "SubstanceSpecification.stoichiometric": for src.stoichiometric make tgt.stoichiometric
  "SubstanceSpecification.identifier": for src.identifier make tgt.identifier
  "SubstanceSpecification.type": for src.type make tgt.type
  "SubstanceSpecification.referenceSource": for src.referenceSource make tgt.referenceSource
  "SubstanceSpecification.moiety": for src.moiety as s make tgt.moiety as t then SubstanceSpecificationMoiety(s,t)
  "SubstanceSpecification.property": for src.property as s make tgt.property as t then SubstanceSpecificationProperty(s,t)
  "SubstanceSpecification.referenceInformation": for src.referenceInformation make tgt.referenceInformation
  "SubstanceSpecification.structure": for src.structure as s make tgt.structure as t then SubstanceSpecificationStructure(s,t)
  "SubstanceSpecification.substanceCode": for src.substanceCode as s make tgt.substanceCode as t then SubstanceSpecificationSubstanceCode(s,t)
  "SubstanceSpecification.substanceName": for src.substanceName as s make tgt.substanceName as t then SubstanceSpecificationSubstanceName(s,t)
  "SubstanceSpecification.molecularWeight": for src.molecularWeight make tgt.molecularWeight
  "SubstanceSpecification.polymer": for src.polymer make tgt.polymer
endgroup


group SubstanceSpecificationMoiety extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.moiety.role": for src.role make tgt.role
  "SubstanceSpecification.moiety.identifier": for src.identifier make tgt.identifier
  "SubstanceSpecification.moiety.name": for src.name make tgt.name
  "SubstanceSpecification.moiety.stereochemistry": for src.stereochemistry make tgt.stereochemistry
  "SubstanceSpecification.moiety.opticalActivity": for src.opticalActivity make tgt.opticalActivity
  "SubstanceSpecification.moiety.molecularFormula": for src.molecularFormula make tgt.molecularFormula
  "SubstanceSpecification.moiety.amount": for src.amount make tgt.amount
endgroup


group SubstanceSpecificationProperty extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.property.type": for src.type make tgt.type
  "SubstanceSpecification.property.name": for src.name make tgt.name
  "SubstanceSpecification.property.parameters": for src.parameters make tgt.parameters
  "SubstanceSpecification.property.substanceId": for src.substanceId make tgt.substanceId
  "SubstanceSpecification.property.substanceName": for src.substanceName make tgt.substanceName
  "SubstanceSpecification.property.amount": for src.amount make tgt.amount
endgroup


group SubstanceSpecificationStructure extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.stereochemistry": for src.stereochemistry make tgt.stereochemistry
  "SubstanceSpecification.structure.opticalActivity": for src.opticalActivity make tgt.opticalActivity
  "SubstanceSpecification.structure.molecularFormula": for src.molecularFormula make tgt.molecularFormula
  "SubstanceSpecification.structure.molecularFormulaByMoiety": for src.molecularFormulaByMoiety make tgt.molecularFormulaByMoiety
  "SubstanceSpecification.structure.isotope": for src.isotope as s make tgt.isotope as t then SubstanceSpecificationStructureIsotope(s,t)
  "SubstanceSpecification.structure.molecularWeight": for src.molecularWeight make tgt.molecularWeight
  "SubstanceSpecification.structure.referenceSource": for src.referenceSource make tgt.referenceSource
  "SubstanceSpecification.structure.structuralRepresentation": for src.structuralRepresentation as s make tgt.structuralRepresentation as t then SubstanceSpecificationStructureStructuralRepresentation(s,t)
endgroup


group SubstanceSpecificationStructureIsotope extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.isotope.nuclideId": for src.nuclideId make tgt.nuclideId
  "SubstanceSpecification.structure.isotope.nuclideName": for src.nuclideName make tgt.nuclideName
  "SubstanceSpecification.structure.isotope.substitutionType": for src.substitutionType make tgt.substitutionType
  "SubstanceSpecification.structure.isotope.nuclideHalfLife": for src.nuclideHalfLife make tgt.nuclideHalfLife
  "SubstanceSpecification.structure.isotope.amount": for src.amount make tgt.amount
  "SubstanceSpecification.structure.isotope.molecularWeight": for src.molecularWeight as s make tgt.molecularWeight as t then SubstanceSpecificationStructureIsotopeMolecularWeight(s,t)
endgroup


group SubstanceSpecificationStructureIsotopeMolecularWeight extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.isotope.molecularWeight.method": for src.method make tgt.method
  "SubstanceSpecification.structure.isotope.molecularWeight.type": for src.type make tgt.type
  "SubstanceSpecification.structure.isotope.molecularWeight.amount": for src.amount make tgt.amount
endgroup


group SubstanceSpecificationStructureStructuralRepresentation extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.structuralRepresentation.type": for src.type make tgt.type
  "SubstanceSpecification.structure.structuralRepresentation.representation": for src.representation make tgt.representation
  "SubstanceSpecification.structure.structuralRepresentation.attachment": for src.attachment make tgt.attachment
endgroup


group SubstanceSpecificationSubstanceCode extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceCode.code": for src.code make tgt.code
  "SubstanceSpecification.substanceCode.status": for src.status make tgt.status
  "SubstanceSpecification.substanceCode.statusDate": for src.statusDate make tgt.statusDate
  "SubstanceSpecification.substanceCode.comment": for src.comment make tgt.comment
  "SubstanceSpecification.substanceCode.referenceSource": for src.referenceSource make tgt.referenceSource
endgroup


group SubstanceSpecificationSubstanceName extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceName.name": for src.name make tgt.name
  "SubstanceSpecification.substanceName.type": for src.type make tgt.type
  "SubstanceSpecification.substanceName.language": for src.language make tgt.language
  "SubstanceSpecification.substanceName.domain": for src.domain make tgt.domain
  "SubstanceSpecification.substanceName.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "SubstanceSpecification.substanceName.officialName": for src.officialName as s make tgt.officialName as t then SubstanceSpecificationSubstanceNameOfficialName(s,t)
  "SubstanceSpecification.substanceName.referenceSource": for src.referenceSource make tgt.referenceSource
endgroup


group SubstanceSpecificationSubstanceNameOfficialName extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceName.officialName.authority": for src.authority make tgt.authority
  "SubstanceSpecification.substanceName.officialName.status": for src.status make tgt.status
  "SubstanceSpecification.substanceName.officialName.date": for src.date make tgt.date
endgroup


map "http://hl7.org/fhir/StructureMap/SubstanceSpecification4to3" = "R4 to R3 Conversion for SubstanceSpecification"


uses "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification" alias SubstanceSpecification as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/SubstanceSpecification" alias SubstanceSpecificationR3 as target

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



group SubstanceSpecification extends DomainResource
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.comment": for src.comment make tgt.comment
  "SubstanceSpecification.stoichiometric": for src.stoichiometric make tgt.stoichiometric
  "SubstanceSpecification.identifier": for src.identifier make tgt.identifier
  "SubstanceSpecification.type": for src.type make tgt.type
  "SubstanceSpecification.referenceSource": for src.referenceSource make tgt.referenceSource
  "SubstanceSpecification.moiety": for src.moiety as s make tgt.moiety as t then SubstanceSpecificationMoiety(s,t)
  "SubstanceSpecification.property": for src.property as s make tgt.property as t then SubstanceSpecificationProperty(s,t)
  "SubstanceSpecification.referenceInformation": for src.referenceInformation make tgt.referenceInformation
  "SubstanceSpecification.structure": for src.structure as s make tgt.structure as t then SubstanceSpecificationStructure(s,t)
  "SubstanceSpecification.substanceCode": for src.substanceCode as s make tgt.substanceCode as t then SubstanceSpecificationSubstanceCode(s,t)
  "SubstanceSpecification.substanceName": for src.substanceName as s make tgt.substanceName as t then SubstanceSpecificationSubstanceName(s,t)
  "SubstanceSpecification.molecularWeight": for src.molecularWeight make tgt.molecularWeight
  "SubstanceSpecification.polymer": for src.polymer make tgt.polymer
endgroup

group SubstanceSpecificationMoiety extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.moiety.role": for src.role make tgt.role
  "SubstanceSpecification.moiety.identifier": for src.identifier make tgt.identifier
  "SubstanceSpecification.moiety.name": for src.name make tgt.name
  "SubstanceSpecification.moiety.stereochemistry": for src.stereochemistry make tgt.stereochemistry
  "SubstanceSpecification.moiety.opticalActivity": for src.opticalActivity make tgt.opticalActivity
  "SubstanceSpecification.moiety.molecularFormula": for src.molecularFormula make tgt.molecularFormula
  "SubstanceSpecification.moiety.amount": for src.amount make tgt.amount
endgroup

group SubstanceSpecificationProperty extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.property.type": for src.type make tgt.type
  "SubstanceSpecification.property.name": for src.name make tgt.name
  "SubstanceSpecification.property.parameters": for src.parameters make tgt.parameters
  "SubstanceSpecification.property.substanceId": for src.substanceId make tgt.substanceId
  "SubstanceSpecification.property.substanceName": for src.substanceName make tgt.substanceName
  "SubstanceSpecification.property.amount": for src.amount make tgt.amount
endgroup

group SubstanceSpecificationStructure extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.stereochemistry": for src.stereochemistry make tgt.stereochemistry
  "SubstanceSpecification.structure.opticalActivity": for src.opticalActivity make tgt.opticalActivity
  "SubstanceSpecification.structure.molecularFormula": for src.molecularFormula make tgt.molecularFormula
  "SubstanceSpecification.structure.molecularFormulaByMoiety": for src.molecularFormulaByMoiety make tgt.molecularFormulaByMoiety
  "SubstanceSpecification.structure.isotope": for src.isotope as s make tgt.isotope as t then SubstanceSpecificationStructureIsotope(s,t)
  "SubstanceSpecification.structure.molecularWeight": for src.molecularWeight make tgt.molecularWeight
  "SubstanceSpecification.structure.referenceSource": for src.referenceSource make tgt.referenceSource
  "SubstanceSpecification.structure.structuralRepresentation": for src.structuralRepresentation as s make tgt.structuralRepresentation as t then SubstanceSpecificationStructureStructuralRepresentation(s,t)
endgroup

group SubstanceSpecificationStructureIsotope extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.isotope.nuclideId": for src.nuclideId make tgt.nuclideId
  "SubstanceSpecification.structure.isotope.nuclideName": for src.nuclideName make tgt.nuclideName
  "SubstanceSpecification.structure.isotope.substitutionType": for src.substitutionType make tgt.substitutionType
  "SubstanceSpecification.structure.isotope.nuclideHalfLife": for src.nuclideHalfLife make tgt.nuclideHalfLife
  "SubstanceSpecification.structure.isotope.amount": for src.amount make tgt.amount
  "SubstanceSpecification.structure.isotope.molecularWeight": for src.molecularWeight as s make tgt.molecularWeight as t then SubstanceSpecificationStructureIsotopeMolecularWeight(s,t)
endgroup

group SubstanceSpecificationStructureIsotopeMolecularWeight extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.isotope.molecularWeight.method": for src.method make tgt.method
  "SubstanceSpecification.structure.isotope.molecularWeight.type": for src.type make tgt.type
  "SubstanceSpecification.structure.isotope.molecularWeight.amount": for src.amount make tgt.amount
endgroup

group SubstanceSpecificationStructureStructuralRepresentation extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.structure.structuralRepresentation.type": for src.type make tgt.type
  "SubstanceSpecification.structure.structuralRepresentation.representation": for src.representation make tgt.representation
  "SubstanceSpecification.structure.structuralRepresentation.attachment": for src.attachment make tgt.attachment
endgroup

group SubstanceSpecificationSubstanceCode extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceCode.code": for src.code make tgt.code
  "SubstanceSpecification.substanceCode.status": for src.status make tgt.status
  "SubstanceSpecification.substanceCode.statusDate": for src.statusDate make tgt.statusDate
  "SubstanceSpecification.substanceCode.comment": for src.comment make tgt.comment
  "SubstanceSpecification.substanceCode.referenceSource": for src.referenceSource make tgt.referenceSource
endgroup

group SubstanceSpecificationSubstanceName extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceName.name": for src.name make tgt.name
  "SubstanceSpecification.substanceName.type": for src.type make tgt.type
  "SubstanceSpecification.substanceName.language": for src.language make tgt.language
  "SubstanceSpecification.substanceName.domain": for src.domain make tgt.domain
  "SubstanceSpecification.substanceName.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "SubstanceSpecification.substanceName.officialName": for src.officialName as s make tgt.officialName as t then SubstanceSpecificationSubstanceNameOfficialName(s,t)
  "SubstanceSpecification.substanceName.referenceSource": for src.referenceSource make tgt.referenceSource
endgroup

group SubstanceSpecificationSubstanceNameOfficialName extends BackboneElement
  input src : SubstanceSpecificationR3 as source
  input tgt : SubstanceSpecification as target

  "SubstanceSpecification.substanceName.officialName.authority": for src.authority make tgt.authority
  "SubstanceSpecification.substanceName.officialName.status": for src.status make tgt.status
  "SubstanceSpecification.substanceName.officialName.date": for src.date make tgt.date
endgroup

n/a