Release 4B Snapshot #1

This page is part of the FHIR Specification (v4.3.0-snapshot1: Release 4B Snapshot #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B

Substancedefinition.profile.json

Biomedical Research and Regulation Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

StructureDefinition for substancedefinition

{
  "resourceType" : "StructureDefinition",
  "id" : "SubstanceDefinition",
  "meta" : {
    "lastUpdated" : "2021-12-20T14:08:35.086+11:00"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div>!-- Snipped for Brevity --></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 1
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode" : "anonymous"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "brr"
  }],
  "url" : "http://hl7.org/fhir/StructureDefinition/SubstanceDefinition",
  "version" : "4.3.0-snapshot1",
  "name" : "SubstanceDefinition",
  "status" : "draft",
  "date" : "2021-12-20T14:08:35+11:00",
  "publisher" : "Health Level Seven International (Biomedical Research and Regulation)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  },
  {
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/rcrim/index.cfm"
    }]
  }],
  "description" : "The detailed description of a substance, typically at a level beyond what is used for prescribing.",
  "fhirVersion" : "4.3.0-snapshot1",
  "mapping" : [{
    "identity" : "idmp",
    "uri" : "https://en.wikipedia.org/wiki/Identification_of_medicinal_products",
    "name" : "IDMP Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "SubstanceDefinition",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation" : "specialization",
  "snapshot" : {
    "element" : [{
      "id" : "SubstanceDefinition",
      "path" : "SubstanceDefinition",
      "short" : "The detailed description of a substance, typically at a level beyond what is used for prescribing",
      "definition" : "The detailed description of a substance, typically at a level beyond what is used for prescribing.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition",
        "min" : 0,
        "max" : "*"
      },
      "constraint" : [{
        "key" : "dom-2",
        "severity" : "error",
        "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "expression" : "contained.contained.empty()",
        "xpath" : "not(parent::f:contained and f:contained)",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "key" : "dom-3",
        "severity" : "error",
        "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "expression" : "contained.where(((id.exists() and ('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url)))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(uri) = '#').exists()).not()).trace('unmatched', id).empty()",
        "xpath" : "not(exists(for $resource in . return (for $contained in $resource/f:contained return $contained[not(descendant::f:*/@value='#' or (exists(f:id) and $resource//f:*/@*=concat('#', $contained/*/f:id/@value)))])))",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "key" : "dom-4",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "key" : "dom-5",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
        "expression" : "contained.meta.security.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        }],
        "key" : "dom-6",
        "severity" : "warning",
        "human" : "A resource should have narrative for robust management",
        "expression" : "text.`div`.exists()",
        "xpath" : "exists(f:text/h:div)",
        "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Entity. Role, or Act"
      },
      {
        "identity" : "idmp",
        "map" : "Substance (and derived classes: Chemical, Polymer, Protein, Nucleic_Acid, Structurally_Diverse)"
      },
      {
        "identity" : "w5",
        "map" : "administrative.medication"
      }]
    },
    {
      "id" : "SubstanceDefinition.id",
      "path" : "SubstanceDefinition.id",
      "short" : "Logical id of this artifact",
      "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.meta",
      "path" : "SubstanceDefinition.meta",
      "short" : "Metadata about the resource",
      "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.meta",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Meta"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.implicitRules",
      "path" : "SubstanceDefinition.implicitRules",
      "short" : "A set of rules under which this content was created",
      "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.implicitRules",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.language",
      "path" : "SubstanceDefinition.language",
      "short" : "Language of the resource content",
      "definition" : "The base language in which the resource is written.",
      "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.language",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Language"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "IETF language tag",
        "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
      }
    },
    {
      "id" : "SubstanceDefinition.text",
      "path" : "SubstanceDefinition.text",
      "short" : "Text summary of the resource, for human interpretation",
      "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "alias" : ["narrative",
      "html",
      "xhtml",
      "display"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.text",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Narrative"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Act.text?"
      }]
    },
    {
      "id" : "SubstanceDefinition.contained",
      "path" : "SubstanceDefinition.contained",
      "short" : "Contained, inline Resources",
      "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "alias" : ["inline resources",
      "anonymous resources",
      "contained resources"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.contained",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Resource"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.extension",
      "path" : "SubstanceDefinition.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.modifierExtension",
      "path" : "SubstanceDefinition.modifierExtension",
      "short" : "Extensions that cannot be ignored",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "mustSupport" : false,
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.identifier",
      "path" : "SubstanceDefinition.identifier",
      "short" : "Identifier by which this substance is known",
      "definition" : "Identifier by which this substance is known.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.version",
      "path" : "SubstanceDefinition.version",
      "short" : "A business level identifier of the substance",
      "definition" : "A business level identifier of the substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.version",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Version.Version_Number"
      }]
    },
    {
      "id" : "SubstanceDefinition.status",
      "path" : "SubstanceDefinition.status",
      "short" : "Status of substance within the catalogue e.g. approved",
      "definition" : "Status of substance within the catalogue e.g. approved.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Domain"
      }]
    },
    {
      "id" : "SubstanceDefinition.classification",
      "path" : "SubstanceDefinition.classification",
      "short" : "A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant)",
      "definition" : "A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.classification",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Substance_Classification and Substance_classification.Substance_Classification_Subtype"
      }]
    },
    {
      "id" : "SubstanceDefinition.domain",
      "path" : "SubstanceDefinition.domain",
      "short" : "If the substance applies to only human or veterinary use",
      "definition" : "If the substance applies to only human or veterinary use.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.domain",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Substance_Classification (and Code and Type) and Substance_Classification.Substance_Classification_Subtype"
      }]
    },
    {
      "id" : "SubstanceDefinition.grade",
      "path" : "SubstanceDefinition.grade",
      "short" : "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard)",
      "definition" : "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.grade",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Specified_Substance_Group_3.Grade"
      }]
    },
    {
      "id" : "SubstanceDefinition.description",
      "path" : "SubstanceDefinition.description",
      "short" : "Textual description of the substance",
      "definition" : "Textual description of the substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.description",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "markdown"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Comment"
      }]
    },
    {
      "id" : "SubstanceDefinition.informationSource",
      "path" : "SubstanceDefinition.informationSource",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.informationSource",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Citation"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.note",
      "path" : "SubstanceDefinition.note",
      "short" : "Textual comment about the substance's catalogue or registry record",
      "definition" : "Textual comment about the substance's catalogue or registry record.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.note",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Annotation"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.manufacturer",
      "path" : "SubstanceDefinition.manufacturer",
      "short" : "A company that makes this substance",
      "definition" : "A company that makes this substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.manufacturer",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.supplier",
      "path" : "SubstanceDefinition.supplier",
      "short" : "A company that supplies this substance",
      "definition" : "A company that supplies this substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.supplier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety",
      "path" : "SubstanceDefinition.moiety",
      "short" : "Moiety, for structural modifications",
      "definition" : "Moiety, for structural modifications.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.moiety",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Moiety"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.id",
      "path" : "SubstanceDefinition.moiety.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.extension",
      "path" : "SubstanceDefinition.moiety.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.modifierExtension",
      "path" : "SubstanceDefinition.moiety.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.role",
      "path" : "SubstanceDefinition.moiety.role",
      "short" : "Role that the moiety is playing",
      "definition" : "Role that the moiety is playing.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.role",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Role"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.identifier",
      "path" : "SubstanceDefinition.moiety.identifier",
      "short" : "Identifier by which this moiety substance is known",
      "definition" : "Identifier by which this moiety substance is known.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.identifier",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.name",
      "path" : "SubstanceDefinition.moiety.name",
      "short" : "Textual name for this moiety substance",
      "definition" : "Textual name for this moiety substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.name",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.stereochemistry",
      "path" : "SubstanceDefinition.moiety.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.stereochemistry",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Stereochemistry"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.opticalActivity",
      "path" : "SubstanceDefinition.moiety.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.opticalActivity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Optical_Activity"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.molecularFormula",
      "path" : "SubstanceDefinition.moiety.molecularFormula",
      "short" : "Molecular formula for this moiety of this substance, typically using the Hill system",
      "definition" : "Molecular formula for this moiety of this substance, typically using the Hill system.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.molecularFormula",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Molecular_Formula"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.amount[x]",
      "path" : "SubstanceDefinition.moiety.amount[x]",
      "short" : "Quantitative value for this moiety",
      "definition" : "Quantitative value for this moiety.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.amount[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity"
      },
      {
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Amount"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.amountType",
      "path" : "SubstanceDefinition.moiety.amountType",
      "short" : "The measurement type of the quantitative value",
      "definition" : "The measurement type of the quantitative value.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.moiety.amountType",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Amount.Amount_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.property",
      "path" : "SubstanceDefinition.property",
      "short" : "General specifications for this substance",
      "definition" : "General specifications for this substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.property",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Property"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.id",
      "path" : "SubstanceDefinition.property.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.extension",
      "path" : "SubstanceDefinition.property.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.modifierExtension",
      "path" : "SubstanceDefinition.property.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.type",
      "path" : "SubstanceDefinition.property.type",
      "short" : "A code expressing the type of characteristic",
      "definition" : "A code expressing the type of characteristic.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.type",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Property.Property_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.value[x]",
      "path" : "SubstanceDefinition.property.value[x]",
      "short" : "A value for the characteristic",
      "definition" : "A value for the characteristic.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.value[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Quantity"
      },
      {
        "code" : "date"
      },
      {
        "code" : "boolean"
      },
      {
        "code" : "Attachment"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Physical Characteristics, attribute's value"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight",
      "path" : "SubstanceDefinition.molecularWeight",
      "short" : "The molecular weight or weight range (for proteins, polymers or nucleic acids)",
      "definition" : "The molecular weight or weight range (for proteins, polymers or nucleic acids).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.molecularWeight",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.id",
      "path" : "SubstanceDefinition.molecularWeight.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.extension",
      "path" : "SubstanceDefinition.molecularWeight.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.modifierExtension",
      "path" : "SubstanceDefinition.molecularWeight.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.method",
      "path" : "SubstanceDefinition.molecularWeight.method",
      "short" : "The method by which the molecular weight was determined",
      "definition" : "The method by which the molecular weight was determined.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.molecularWeight.method",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Molecular_Weight_Method"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.type",
      "path" : "SubstanceDefinition.molecularWeight.type",
      "short" : "Type of molecular weight such as exact, average (also known as. number average), weight average",
      "definition" : "Type of molecular weight such as exact, average (also known as. number average), weight average.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.molecularWeight.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Molecular_Weight_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.amount",
      "path" : "SubstanceDefinition.molecularWeight.amount",
      "short" : "Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field",
      "definition" : "Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.molecularWeight.amount",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Amount"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure",
      "path" : "SubstanceDefinition.structure",
      "short" : "Structural information",
      "definition" : "Structural information.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Structure"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.id",
      "path" : "SubstanceDefinition.structure.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.extension",
      "path" : "SubstanceDefinition.structure.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.modifierExtension",
      "path" : "SubstanceDefinition.structure.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.stereochemistry",
      "path" : "SubstanceDefinition.structure.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.stereochemistry",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Stereochemistry"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.opticalActivity",
      "path" : "SubstanceDefinition.structure.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.opticalActivity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Optical_Activity"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularFormula",
      "path" : "SubstanceDefinition.structure.molecularFormula",
      "short" : "Molecular formula of this substance, typically using the Hill system",
      "definition" : "Molecular formula of this substance, typically using the Hill system.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.molecularFormula",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Formula"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularFormulaByMoiety",
      "path" : "SubstanceDefinition.structure.molecularFormulaByMoiety",
      "short" : "Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot",
      "definition" : "Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.molecularFormulaByMoiety",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Formula_By_Moiety"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularWeight",
      "path" : "SubstanceDefinition.structure.molecularWeight",
      "short" : "The molecular weight or weight range (for proteins, polymers or nucleic acids)",
      "definition" : "The molecular weight or weight range (for proteins, polymers or nucleic acids).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.molecularWeight",
        "min" : 0,
        "max" : "1"
      },
      "contentReference" : "#SubstanceDefinition.molecularWeight",
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Weight"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.technique",
      "path" : "SubstanceDefinition.structure.technique",
      "short" : "The method used to elucidate the structure or characterization of the drug substance. Examples: X-ray, HPLC, NMR, Peptide mapping, Ligand binding assay",
      "definition" : "The method used to elucidate the structure or characterization of the drug substance. Examples: X-ray, HPLC, NMR, Peptide mapping, Ligand binding assay.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.structure.technique",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.sourceDocument",
      "path" : "SubstanceDefinition.structure.sourceDocument",
      "short" : "Supporting literature about the source of information",
      "definition" : "Supporting literature about the source of information.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.structure.sourceDocument",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation",
      "path" : "SubstanceDefinition.structure.representation",
      "short" : "A depiction of the structure or characterization of the substance",
      "definition" : "A depiction of the structure or characterization of the substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Structural_Representation"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.id",
      "path" : "SubstanceDefinition.structure.representation.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.extension",
      "path" : "SubstanceDefinition.structure.representation.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.modifierExtension",
      "path" : "SubstanceDefinition.structure.representation.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.type",
      "path" : "SubstanceDefinition.structure.representation.type",
      "short" : "The kind of structural representation (e.g. full, partial) or the technique used to derive the analytical characterization of the substance (e.g. x-ray, HPLC, NMR, peptide mapping, ligand binding assay, etc.)",
      "definition" : "The kind of structural representation (e.g. full, partial) or the technique used to derive the analytical characterization of the substance (e.g. x-ray, HPLC, NMR, peptide mapping, ligand binding assay, etc.).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.representation",
      "path" : "SubstanceDefinition.structure.representation.representation",
      "short" : "The structural representation or characterization as a text string in a standard format",
      "definition" : "The structural representation or characterization as a text string in a standard format.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation.representation",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.format",
      "path" : "SubstanceDefinition.structure.representation.format",
      "short" : "The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF. The logical content type rather than the physical file format of a document",
      "definition" : "The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF. The logical content type rather than the physical file format of a document.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation.format",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.document",
      "path" : "SubstanceDefinition.structure.representation.document",
      "short" : "An attached file with the structural representation or characterization e.g. a molecular structure graphic of the substance, a JCAMP or AnIML file",
      "definition" : "An attached file with the structural representation or characterization e.g. a molecular structure graphic of the substance, a JCAMP or AnIML file.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation.document",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation_Attachment"
      }]
    },
    {
      "id" : "SubstanceDefinition.code",
      "path" : "SubstanceDefinition.code",
      "short" : "Codes associated with the substance",
      "definition" : "Codes associated with the substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.code",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Code"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.id",
      "path" : "SubstanceDefinition.code.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.extension",
      "path" : "SubstanceDefinition.code.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.modifierExtension",
      "path" : "SubstanceDefinition.code.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.code",
      "path" : "SubstanceDefinition.code.code",
      "short" : "The specific code",
      "definition" : "The specific code.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.code.code",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code, Substance_Code.Code_System, Substance_Code.Code_System_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.status",
      "path" : "SubstanceDefinition.code.status",
      "short" : "Status of the code assignment, for example 'provisional', 'approved'",
      "definition" : "Status of the code assignment, for example 'provisional', 'approved'.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.code.status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code_System_Status"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.statusDate",
      "path" : "SubstanceDefinition.code.statusDate",
      "short" : "The date at which the code status is changed as part of the terminology maintenance",
      "definition" : "The date at which the code status is changed as part of the terminology maintenance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.code.statusDate",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code_Change_Date"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.note",
      "path" : "SubstanceDefinition.code.note",
      "short" : "Any comment can be provided in this field, if necessary",
      "definition" : "Any comment can be provided in this field, if necessary.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.code.note",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Annotation"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Comment"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.source",
      "path" : "SubstanceDefinition.code.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.code.source",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.name",
      "path" : "SubstanceDefinition.name",
      "short" : "Names applicable to this substance",
      "definition" : "Names applicable to this substance.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.id",
      "path" : "SubstanceDefinition.name.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.extension",
      "path" : "SubstanceDefinition.name.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.modifierExtension",
      "path" : "SubstanceDefinition.name.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.name",
      "path" : "SubstanceDefinition.name.name",
      "short" : "The actual name",
      "definition" : "The actual name.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.name",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.type",
      "path" : "SubstanceDefinition.name.type",
      "short" : "Name type, for example 'systematic',  'scientific, 'brand'",
      "definition" : "Name type, for example 'systematic',  'scientific, 'brand'.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.status",
      "path" : "SubstanceDefinition.name.status",
      "short" : "The status of the name, for example 'current', 'proposed'",
      "definition" : "The status of the name, for example 'current', 'proposed'.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.preferred",
      "path" : "SubstanceDefinition.name.preferred",
      "short" : "If this is the preferred name for this substance",
      "definition" : "If this is the preferred name for this substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.preferred",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.language",
      "path" : "SubstanceDefinition.name.language",
      "short" : "Human language that the name is written in",
      "definition" : "Human language that the name is written in.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.language",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Language"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.domain",
      "path" : "SubstanceDefinition.name.domain",
      "short" : "The use context of this name for example if there is a different name a drug active ingredient as opposed to a food colour additive",
      "definition" : "The use context of this name for example if there is a different name a drug active ingredient as opposed to a food colour additive.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.domain",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name_Domain"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.jurisdiction",
      "path" : "SubstanceDefinition.name.jurisdiction",
      "short" : "The jurisdiction where this name applies",
      "definition" : "The jurisdiction where this name applies.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.jurisdiction",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Jurisdiction"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.synonym",
      "path" : "SubstanceDefinition.name.synonym",
      "short" : "A synonym of this particular name, by which the substance is also known",
      "definition" : "A synonym of this particular name, by which the substance is also known.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.synonym",
        "min" : 0,
        "max" : "*"
      },
      "contentReference" : "#SubstanceDefinition.name",
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.translation",
      "path" : "SubstanceDefinition.name.translation",
      "short" : "A translation for this name into another human language",
      "definition" : "A translation for this name into another human language.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.translation",
        "min" : 0,
        "max" : "*"
      },
      "contentReference" : "#SubstanceDefinition.name",
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official",
      "path" : "SubstanceDefinition.name.official",
      "short" : "Details of the official nature of this name",
      "definition" : "Details of the official nature of this name.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.official",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Official_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.id",
      "path" : "SubstanceDefinition.name.official.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.extension",
      "path" : "SubstanceDefinition.name.official.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.modifierExtension",
      "path" : "SubstanceDefinition.name.official.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.authority",
      "path" : "SubstanceDefinition.name.official.authority",
      "short" : "Which authority uses this official name",
      "definition" : "Which authority uses this official name.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.official.authority",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.status",
      "path" : "SubstanceDefinition.name.official.status",
      "short" : "The status of the official name, for example 'provisional', 'approved'",
      "definition" : "The status of the official name, for example 'provisional', 'approved'.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.official.status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Status"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.date",
      "path" : "SubstanceDefinition.name.official.date",
      "short" : "Date of official name change",
      "definition" : "Date of official name change.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.name.official.date",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "dateTime"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Status_Change_Date"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.source",
      "path" : "SubstanceDefinition.name.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.name.source",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship",
      "path" : "SubstanceDefinition.relationship",
      "short" : "A link between this substance and another, with details of the relationship",
      "definition" : "A link between this substance and another, with details of the relationship.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.relationship",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Reference_Information.Relationship"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.id",
      "path" : "SubstanceDefinition.relationship.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.extension",
      "path" : "SubstanceDefinition.relationship.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.modifierExtension",
      "path" : "SubstanceDefinition.relationship.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.substanceDefinition[x]",
      "path" : "SubstanceDefinition.relationship.substanceDefinition[x]",
      "short" : "A pointer to another substance, as a resource or just a representational code",
      "definition" : "A pointer to another substance, as a resource or just a representational code.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.substanceDefinition[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceDefinition"]
      },
      {
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Related_Substance_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.type",
      "path" : "SubstanceDefinition.relationship.type",
      "short" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\"",
      "definition" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\".",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.type",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Relationship_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.isDefining",
      "path" : "SubstanceDefinition.relationship.isDefining",
      "short" : "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships",
      "definition" : "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.isDefining",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "boolean"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Is_Defining"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amount[x]",
      "path" : "SubstanceDefinition.relationship.amount[x]",
      "short" : "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other",
      "definition" : "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.amount[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity"
      },
      {
        "code" : "Ratio"
      },
      {
        "code" : "string"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount.Quantity"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amountRatioHighLimit",
      "path" : "SubstanceDefinition.relationship.amountRatioHighLimit",
      "short" : "For use when the numeric has an uncertain range",
      "definition" : "For use when the numeric has an uncertain range.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.amountRatioHighLimit",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Ratio"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount.Quantity.High_Limit"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amountType",
      "path" : "SubstanceDefinition.relationship.amountType",
      "short" : "An operator for the amount, for example \"average\", \"approximately\", \"less than\"",
      "definition" : "An operator for the amount, for example \"average\", \"approximately\", \"less than\".",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.amountType",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.source",
      "path" : "SubstanceDefinition.relationship.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.relationship.source",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial",
      "path" : "SubstanceDefinition.sourceMaterial",
      "short" : "Material or taxonomic/anatomical source for the substance",
      "definition" : "Material or taxonomic/anatomical source for the substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children unless an empty Parameters resource",
        "expression" : "hasValue() or (children().count() > id.count()) or $this is Parameters",
        "xpath" : "@value|f:*|h:div|self::f:Parameters",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Source_Material"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.id",
      "path" : "SubstanceDefinition.sourceMaterial.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.extension",
      "path" : "SubstanceDefinition.sourceMaterial.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.modifierExtension",
      "path" : "SubstanceDefinition.sourceMaterial.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.type",
      "path" : "SubstanceDefinition.sourceMaterial.type",
      "short" : "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type",
      "definition" : "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial.type",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Source_Material_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.genus",
      "path" : "SubstanceDefinition.sourceMaterial.genus",
      "short" : "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name",
      "definition" : "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial.genus",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Organism.Genus"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.species",
      "path" : "SubstanceDefinition.sourceMaterial.species",
      "short" : "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal",
      "definition" : "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial.species",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Organism.Species"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.part",
      "path" : "SubstanceDefinition.sourceMaterial.part",
      "short" : "An anatomical origin of the source material within an organism",
      "definition" : "An anatomical origin of the source material within an organism.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial.part",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Part_Description.Part"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.countryOfOrigin",
      "path" : "SubstanceDefinition.sourceMaterial.countryOfOrigin",
      "short" : "The country or countries where the material is harvested",
      "definition" : "The country or countries where the material is harvested.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.sourceMaterial.countryOfOrigin",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "http://hl7.org/fhir/StructureDefinition/Element"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Country_Of_Origin"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "SubstanceDefinition",
      "path" : "SubstanceDefinition",
      "short" : "The detailed description of a substance, typically at a level beyond what is used for prescribing",
      "definition" : "The detailed description of a substance, typically at a level beyond what is used for prescribing.",
      "min" : 0,
      "max" : "*",
      "mustSupport" : false,
      "isModifier" : false,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance (and derived classes: Chemical, Polymer, Protein, Nucleic_Acid, Structurally_Diverse)"
      },
      {
        "identity" : "w5",
        "map" : "administrative.medication"
      }]
    },
    {
      "id" : "SubstanceDefinition.identifier",
      "path" : "SubstanceDefinition.identifier",
      "short" : "Identifier by which this substance is known",
      "definition" : "Identifier by which this substance is known.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.version",
      "path" : "SubstanceDefinition.version",
      "short" : "A business level identifier of the substance",
      "definition" : "A business level identifier of the substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Version.Version_Number"
      }]
    },
    {
      "id" : "SubstanceDefinition.status",
      "path" : "SubstanceDefinition.status",
      "short" : "Status of substance within the catalogue e.g. approved",
      "definition" : "Status of substance within the catalogue e.g. approved.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Domain"
      }]
    },
    {
      "id" : "SubstanceDefinition.classification",
      "path" : "SubstanceDefinition.classification",
      "short" : "A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant)",
      "definition" : "A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Substance_Classification and Substance_classification.Substance_Classification_Subtype"
      }]
    },
    {
      "id" : "SubstanceDefinition.domain",
      "path" : "SubstanceDefinition.domain",
      "short" : "If the substance applies to only human or veterinary use",
      "definition" : "If the substance applies to only human or veterinary use.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Classification.Substance_Classification (and Code and Type) and Substance_Classification.Substance_Classification_Subtype"
      }]
    },
    {
      "id" : "SubstanceDefinition.grade",
      "path" : "SubstanceDefinition.grade",
      "short" : "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard)",
      "definition" : "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Specified_Substance_Group_3.Grade"
      }]
    },
    {
      "id" : "SubstanceDefinition.description",
      "path" : "SubstanceDefinition.description",
      "short" : "Textual description of the substance",
      "definition" : "Textual description of the substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Comment"
      }]
    },
    {
      "id" : "SubstanceDefinition.informationSource",
      "path" : "SubstanceDefinition.informationSource",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Citation"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.note",
      "path" : "SubstanceDefinition.note",
      "short" : "Textual comment about the substance's catalogue or registry record",
      "definition" : "Textual comment about the substance's catalogue or registry record.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.manufacturer",
      "path" : "SubstanceDefinition.manufacturer",
      "short" : "A company that makes this substance",
      "definition" : "A company that makes this substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.supplier",
      "path" : "SubstanceDefinition.supplier",
      "short" : "A company that supplies this substance",
      "definition" : "A company that supplies this substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety",
      "path" : "SubstanceDefinition.moiety",
      "short" : "Moiety, for structural modifications",
      "definition" : "Moiety, for structural modifications.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Moiety"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.role",
      "path" : "SubstanceDefinition.moiety.role",
      "short" : "Role that the moiety is playing",
      "definition" : "Role that the moiety is playing.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Role"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.identifier",
      "path" : "SubstanceDefinition.moiety.identifier",
      "short" : "Identifier by which this moiety substance is known",
      "definition" : "Identifier by which this moiety substance is known.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Identifier"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.name",
      "path" : "SubstanceDefinition.moiety.name",
      "short" : "Textual name for this moiety substance",
      "definition" : "Textual name for this moiety substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Moiety_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.stereochemistry",
      "path" : "SubstanceDefinition.moiety.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Stereochemistry"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.opticalActivity",
      "path" : "SubstanceDefinition.moiety.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Optical_Activity"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.molecularFormula",
      "path" : "SubstanceDefinition.moiety.molecularFormula",
      "short" : "Molecular formula for this moiety of this substance, typically using the Hill system",
      "definition" : "Molecular formula for this moiety of this substance, typically using the Hill system.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Molecular_Formula"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.amount[x]",
      "path" : "SubstanceDefinition.moiety.amount[x]",
      "short" : "Quantitative value for this moiety",
      "definition" : "Quantitative value for this moiety.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      },
      {
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Moiety.Amount"
      }]
    },
    {
      "id" : "SubstanceDefinition.moiety.amountType",
      "path" : "SubstanceDefinition.moiety.amountType",
      "short" : "The measurement type of the quantitative value",
      "definition" : "The measurement type of the quantitative value.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Amount.Amount_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.property",
      "path" : "SubstanceDefinition.property",
      "short" : "General specifications for this substance",
      "definition" : "General specifications for this substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Property"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.type",
      "path" : "SubstanceDefinition.property.type",
      "short" : "A code expressing the type of characteristic",
      "definition" : "A code expressing the type of characteristic.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Property.Property_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.property.value[x]",
      "path" : "SubstanceDefinition.property.value[x]",
      "short" : "A value for the characteristic",
      "definition" : "A value for the characteristic.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Quantity"
      },
      {
        "code" : "date"
      },
      {
        "code" : "boolean"
      },
      {
        "code" : "Attachment"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Physical Characteristics, attribute's value"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight",
      "path" : "SubstanceDefinition.molecularWeight",
      "short" : "The molecular weight or weight range (for proteins, polymers or nucleic acids)",
      "definition" : "The molecular weight or weight range (for proteins, polymers or nucleic acids).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.method",
      "path" : "SubstanceDefinition.molecularWeight.method",
      "short" : "The method by which the molecular weight was determined",
      "definition" : "The method by which the molecular weight was determined.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Molecular_Weight_Method"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.type",
      "path" : "SubstanceDefinition.molecularWeight.type",
      "short" : "Type of molecular weight such as exact, average (also known as. number average), weight average",
      "definition" : "Type of molecular weight such as exact, average (also known as. number average), weight average.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Molecular_Weight_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.molecularWeight.amount",
      "path" : "SubstanceDefinition.molecularWeight.amount",
      "short" : "Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field",
      "definition" : "Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Molecular_Weight.Amount"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure",
      "path" : "SubstanceDefinition.structure",
      "short" : "Structural information",
      "definition" : "Structural information.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Structure"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.stereochemistry",
      "path" : "SubstanceDefinition.structure.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Stereochemistry"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.opticalActivity",
      "path" : "SubstanceDefinition.structure.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Optical_Activity"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularFormula",
      "path" : "SubstanceDefinition.structure.molecularFormula",
      "short" : "Molecular formula of this substance, typically using the Hill system",
      "definition" : "Molecular formula of this substance, typically using the Hill system.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Formula"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularFormulaByMoiety",
      "path" : "SubstanceDefinition.structure.molecularFormulaByMoiety",
      "short" : "Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot",
      "definition" : "Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Formula_By_Moiety"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.molecularWeight",
      "path" : "SubstanceDefinition.structure.molecularWeight",
      "short" : "The molecular weight or weight range (for proteins, polymers or nucleic acids)",
      "definition" : "The molecular weight or weight range (for proteins, polymers or nucleic acids).",
      "min" : 0,
      "max" : "1",
      "contentReference" : "#SubstanceDefinition.molecularWeight",
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Molecular_Weight"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.technique",
      "path" : "SubstanceDefinition.structure.technique",
      "short" : "The method used to elucidate the structure or characterization of the drug substance. Examples: X-ray, HPLC, NMR, Peptide mapping, Ligand binding assay",
      "definition" : "The method used to elucidate the structure or characterization of the drug substance. Examples: X-ray, HPLC, NMR, Peptide mapping, Ligand binding assay.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.sourceDocument",
      "path" : "SubstanceDefinition.structure.sourceDocument",
      "short" : "Supporting literature about the source of information",
      "definition" : "Supporting literature about the source of information.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation",
      "path" : "SubstanceDefinition.structure.representation",
      "short" : "A depiction of the structure or characterization of the substance",
      "definition" : "A depiction of the structure or characterization of the substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structure.Structural_Representation"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.type",
      "path" : "SubstanceDefinition.structure.representation.type",
      "short" : "The kind of structural representation (e.g. full, partial) or the technique used to derive the analytical characterization of the substance (e.g. x-ray, HPLC, NMR, peptide mapping, ligand binding assay, etc.)",
      "definition" : "The kind of structural representation (e.g. full, partial) or the technique used to derive the analytical characterization of the substance (e.g. x-ray, HPLC, NMR, peptide mapping, ligand binding assay, etc.).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.representation",
      "path" : "SubstanceDefinition.structure.representation.representation",
      "short" : "The structural representation or characterization as a text string in a standard format",
      "definition" : "The structural representation or characterization as a text string in a standard format.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.format",
      "path" : "SubstanceDefinition.structure.representation.format",
      "short" : "The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF. The logical content type rather than the physical file format of a document",
      "definition" : "The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF. The logical content type rather than the physical file format of a document.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.representation.document",
      "path" : "SubstanceDefinition.structure.representation.document",
      "short" : "An attached file with the structural representation or characterization e.g. a molecular structure graphic of the substance, a JCAMP or AnIML file",
      "definition" : "An attached file with the structural representation or characterization e.g. a molecular structure graphic of the substance, a JCAMP or AnIML file.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Structural_Representation.Structural_Representation_Attachment"
      }]
    },
    {
      "id" : "SubstanceDefinition.code",
      "path" : "SubstanceDefinition.code",
      "short" : "Codes associated with the substance",
      "definition" : "Codes associated with the substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Code"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.code",
      "path" : "SubstanceDefinition.code.code",
      "short" : "The specific code",
      "definition" : "The specific code.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code, Substance_Code.Code_System, Substance_Code.Code_System_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.status",
      "path" : "SubstanceDefinition.code.status",
      "short" : "Status of the code assignment, for example 'provisional', 'approved'",
      "definition" : "Status of the code assignment, for example 'provisional', 'approved'.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code_System_Status"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.statusDate",
      "path" : "SubstanceDefinition.code.statusDate",
      "short" : "The date at which the code status is changed as part of the terminology maintenance",
      "definition" : "The date at which the code status is changed as part of the terminology maintenance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Code_Change_Date"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.note",
      "path" : "SubstanceDefinition.code.note",
      "short" : "Any comment can be provided in this field, if necessary",
      "definition" : "Any comment can be provided in this field, if necessary.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Comment"
      }]
    },
    {
      "id" : "SubstanceDefinition.code.source",
      "path" : "SubstanceDefinition.code.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Code.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.name",
      "path" : "SubstanceDefinition.name",
      "short" : "Names applicable to this substance",
      "definition" : "Names applicable to this substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Substance_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.name",
      "path" : "SubstanceDefinition.name.name",
      "short" : "The actual name",
      "definition" : "The actual name.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.type",
      "path" : "SubstanceDefinition.name.type",
      "short" : "Name type, for example 'systematic',  'scientific, 'brand'",
      "definition" : "Name type, for example 'systematic',  'scientific, 'brand'.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.status",
      "path" : "SubstanceDefinition.name.status",
      "short" : "The status of the name, for example 'current', 'proposed'",
      "definition" : "The status of the name, for example 'current', 'proposed'.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.preferred",
      "path" : "SubstanceDefinition.name.preferred",
      "short" : "If this is the preferred name for this substance",
      "definition" : "If this is the preferred name for this substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.language",
      "path" : "SubstanceDefinition.name.language",
      "short" : "Human language that the name is written in",
      "definition" : "Human language that the name is written in.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Language"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.domain",
      "path" : "SubstanceDefinition.name.domain",
      "short" : "The use context of this name for example if there is a different name a drug active ingredient as opposed to a food colour additive",
      "definition" : "The use context of this name for example if there is a different name a drug active ingredient as opposed to a food colour additive.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Substance_Name_Domain"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.jurisdiction",
      "path" : "SubstanceDefinition.name.jurisdiction",
      "short" : "The jurisdiction where this name applies",
      "definition" : "The jurisdiction where this name applies.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Jurisdiction"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.synonym",
      "path" : "SubstanceDefinition.name.synonym",
      "short" : "A synonym of this particular name, by which the substance is also known",
      "definition" : "A synonym of this particular name, by which the substance is also known.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#SubstanceDefinition.name",
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.translation",
      "path" : "SubstanceDefinition.name.translation",
      "short" : "A translation for this name into another human language",
      "definition" : "A translation for this name into another human language.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#SubstanceDefinition.name",
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official",
      "path" : "SubstanceDefinition.name.official",
      "short" : "Details of the official nature of this name",
      "definition" : "Details of the official nature of this name.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Official_Name"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.authority",
      "path" : "SubstanceDefinition.name.official.authority",
      "short" : "Which authority uses this official name",
      "definition" : "Which authority uses this official name.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.status",
      "path" : "SubstanceDefinition.name.official.status",
      "short" : "The status of the official name, for example 'provisional', 'approved'",
      "definition" : "The status of the official name, for example 'provisional', 'approved'.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Status"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.official.date",
      "path" : "SubstanceDefinition.name.official.date",
      "short" : "Date of official name change",
      "definition" : "Date of official name change.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Official_Name.Official_Name_Status_Change_Date"
      }]
    },
    {
      "id" : "SubstanceDefinition.name.source",
      "path" : "SubstanceDefinition.name.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Name.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship",
      "path" : "SubstanceDefinition.relationship",
      "short" : "A link between this substance and another, with details of the relationship",
      "definition" : "A link between this substance and another, with details of the relationship.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Reference_Information.Relationship"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.substanceDefinition[x]",
      "path" : "SubstanceDefinition.relationship.substanceDefinition[x]",
      "short" : "A pointer to another substance, as a resource or just a representational code",
      "definition" : "A pointer to another substance, as a resource or just a representational code.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceDefinition"]
      },
      {
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Related_Substance_Id"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.type",
      "path" : "SubstanceDefinition.relationship.type",
      "short" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\"",
      "definition" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\".",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Relationship_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.isDefining",
      "path" : "SubstanceDefinition.relationship.isDefining",
      "short" : "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships",
      "definition" : "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Is_Defining"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amount[x]",
      "path" : "SubstanceDefinition.relationship.amount[x]",
      "short" : "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other",
      "definition" : "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      },
      {
        "code" : "Ratio"
      },
      {
        "code" : "string"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount.Quantity"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amountRatioHighLimit",
      "path" : "SubstanceDefinition.relationship.amountRatioHighLimit",
      "short" : "For use when the numeric has an uncertain range",
      "definition" : "For use when the numeric has an uncertain range.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Ratio"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount.Quantity.High_Limit"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.amountType",
      "path" : "SubstanceDefinition.relationship.amountType",
      "short" : "An operator for the amount, for example \"average\", \"approximately\", \"less than\"",
      "definition" : "An operator for the amount, for example \"average\", \"approximately\", \"less than\".",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Amount_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.relationship.source",
      "path" : "SubstanceDefinition.relationship.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance_Relationship.Reference_Source"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial",
      "path" : "SubstanceDefinition.sourceMaterial",
      "short" : "Material or taxonomic/anatomical source for the substance",
      "definition" : "Material or taxonomic/anatomical source for the substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Substance.Source_Material"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.type",
      "path" : "SubstanceDefinition.sourceMaterial.type",
      "short" : "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type",
      "definition" : "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Source_Material_Type"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.genus",
      "path" : "SubstanceDefinition.sourceMaterial.genus",
      "short" : "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name",
      "definition" : "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Organism.Genus"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.species",
      "path" : "SubstanceDefinition.sourceMaterial.species",
      "short" : "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal",
      "definition" : "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Organism.Species"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.part",
      "path" : "SubstanceDefinition.sourceMaterial.part",
      "short" : "An anatomical origin of the source material within an organism",
      "definition" : "An anatomical origin of the source material within an organism.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Part_Description.Part"
      }]
    },
    {
      "id" : "SubstanceDefinition.sourceMaterial.countryOfOrigin",
      "path" : "SubstanceDefinition.sourceMaterial.countryOfOrigin",
      "short" : "The country or countries where the material is harvested",
      "definition" : "The country or countries where the material is harvested.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "mustSupport" : false,
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "idmp",
        "map" : "Source_Material.Country_Of_Origin"
      }]
    }]
  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.