Release 5 Preview #1

This page is part of the FHIR Specification (v4.2.0: R5 Preview #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" : "2019-12-31T21:03:40.621+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.2.0",
  "name" : "SubstanceDefinition",
  "status" : "draft",
  "date" : "2019-12-31T21:03:40+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.2.0",
  "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" : "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 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(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
        "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source" : "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" : "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" : "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" : "DomainResource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Entity. Role, or Act"
      }]
    },
    {
      "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",
          "valueUri" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "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" : "Element"
      }],
      "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" : "Element"
      }],
      "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" : "Element"
      }],
      "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" : "A human language.",
        "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" : "Element"
      }],
      "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"
      }],
      "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" : "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" : "Extension"
      }],
      "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" : "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" : "Extension"
      }],
      "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" : "1",
      "base" : {
        "path" : "SubstanceDefinition.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.category",
      "path" : "SubstanceDefinition.category",
      "short" : "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological",
      "definition" : "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.category",
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.source",
      "path" : "SubstanceDefinition.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.note",
      "path" : "SubstanceDefinition.note",
      "short" : "Textual comment about this record of a substance",
      "definition" : "Textual comment about this record of a substance.",
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property",
      "path" : "SubstanceDefinition.property",
      "short" : "General specifications for this substance, including how it is related to other substances",
      "definition" : "General specifications for this substance, including how it is related to other substances.",
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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.category",
      "path" : "SubstanceDefinition.property.category",
      "short" : "A category for this property, e.g. Physical, Chemical, Enzymatic",
      "definition" : "A category for this property, e.g. Physical, Chemical, Enzymatic.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.category",
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.code",
      "path" : "SubstanceDefinition.property.code",
      "short" : "Property type e.g. viscosity, pH, isoelectric point",
      "definition" : "Property type e.g. viscosity, pH, isoelectric point.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.parameters",
      "path" : "SubstanceDefinition.property.parameters",
      "short" : "Parameters that were used in the measurement of a property (e.g. for viscosity: measured at 20C with a pH of 7.1)",
      "definition" : "Parameters that were used in the measurement of a property (e.g. for viscosity: measured at 20C with a pH of 7.1).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.parameters",
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.definingSubstance[x]",
      "path" : "SubstanceDefinition.property.definingSubstance[x]",
      "short" : "A substance upon which a defining property depends (e.g. for solubility: in water, in alcohol)",
      "definition" : "A substance upon which a defining property depends (e.g. for solubility: in water, in alcohol).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.definingSubstance[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceDefinition",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      },
      {
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.amount[x]",
      "path" : "SubstanceDefinition.property.amount[x]",
      "short" : "Quantitative value for this property",
      "definition" : "Quantitative value for this property.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.referenceRange",
      "path" : "SubstanceDefinition.property.referenceRange",
      "short" : "Range of typical values",
      "definition" : "Range of typical values.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.property.referenceRange",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Range"
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.source",
      "path" : "SubstanceDefinition.property.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.property.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.referenceInformation",
      "path" : "SubstanceDefinition.referenceInformation",
      "short" : "General information detailing this substance",
      "definition" : "General information detailing this substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.referenceInformation",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation"]
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope",
      "path" : "SubstanceDefinition.structure.isotope",
      "short" : "Applicable for single substances that contain a radionuclide or a non-natural isotopic ratio",
      "definition" : "Applicable for single substances that contain a radionuclide or a non-natural isotopic ratio.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.id",
      "path" : "SubstanceDefinition.structure.isotope.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",
          "valueUri" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.extension",
      "path" : "SubstanceDefinition.structure.isotope.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" : "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" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.modifierExtension",
      "path" : "SubstanceDefinition.structure.isotope.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" : "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" : "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.isotope.identifier",
      "path" : "SubstanceDefinition.structure.isotope.identifier",
      "short" : "Substance identifier for each non-natural or radioisotope",
      "definition" : "Substance identifier for each non-natural or radioisotope.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.name",
      "path" : "SubstanceDefinition.structure.isotope.name",
      "short" : "Substance name for each non-natural or radioisotope",
      "definition" : "Substance name for each non-natural or radioisotope.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope.name",
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.substitution",
      "path" : "SubstanceDefinition.structure.isotope.substitution",
      "short" : "The type of isotopic substitution present in a single substance",
      "definition" : "The type of isotopic substitution present in a single substance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope.substitution",
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.halfLife",
      "path" : "SubstanceDefinition.structure.isotope.halfLife",
      "short" : "Half life - for a non-natural nuclide",
      "definition" : "Half life - for a non-natural nuclide.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope.halfLife",
        "min" : 0,
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight",
      "path" : "SubstanceDefinition.structure.isotope.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.isotope.molecularWeight",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.id",
      "path" : "SubstanceDefinition.structure.isotope.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",
          "valueUri" : "id"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.extension",
      "path" : "SubstanceDefinition.structure.isotope.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" : "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" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.modifierExtension",
      "path" : "SubstanceDefinition.structure.isotope.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" : "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" : "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.isotope.molecularWeight.method",
      "path" : "SubstanceDefinition.structure.isotope.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.structure.isotope.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.type",
      "path" : "SubstanceDefinition.structure.isotope.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.structure.isotope.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.amount",
      "path" : "SubstanceDefinition.structure.isotope.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" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.isotope.molecularWeight.amount",
        "min" : 0,
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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.structure.isotope.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.sourceCoding",
      "path" : "SubstanceDefinition.structure.sourceCoding",
      "short" : "Describes the source of information",
      "definition" : "Describes the source of information.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "SubstanceDefinition.structure.sourceCoding",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Coding"
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation",
      "path" : "SubstanceDefinition.structure.representation",
      "short" : "Molecular structural representation",
      "definition" : "Molecular structural representation.",
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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 type of structure (e.g. Full, Partial, Representative)",
      "definition" : "The type of structure (e.g. Full, Partial, Representative).",
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation.representation",
      "path" : "SubstanceDefinition.structure.representation.representation",
      "short" : "The structural representation as text string in a format e.g. InChI, SMILES, MOLFILE, CDX",
      "definition" : "The structural representation as text string in a format e.g. InChI, SMILES, MOLFILE, CDX.",
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation.attachment",
      "path" : "SubstanceDefinition.structure.representation.attachment",
      "short" : "An attached file with the structural representation",
      "definition" : "An attached file with the structural representation.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.structure.representation.attachment",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "*"
      },
      "contentReference" : "#SubstanceDefinition.structure.isotope.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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",
          "valueUri" : "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" : "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" : "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" : "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" : "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.relationship.type",
      "path" : "SubstanceDefinition.relationship.type",
      "short" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\"",
      "definition" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\".",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.relationship.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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Range"
      },
      {
        "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.nucleicAcid",
      "path" : "SubstanceDefinition.nucleicAcid",
      "short" : "Data items specific to nucleic acids",
      "definition" : "Data items specific to nucleic acids.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.nucleicAcid",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid"]
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.polymer",
      "path" : "SubstanceDefinition.polymer",
      "short" : "Data items specific to polymers",
      "definition" : "Data items specific to polymers.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.polymer",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstancePolymer"]
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.protein",
      "path" : "SubstanceDefinition.protein",
      "short" : "Data items specific to proteins",
      "definition" : "Data items specific to proteins.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "SubstanceDefinition.protein",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceProtein"]
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "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" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial"]
      }],
      "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" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true
    }]
  },
  "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" : "*"
    },
    {
      "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" : "1",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.category",
      "path" : "SubstanceDefinition.category",
      "short" : "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological",
      "definition" : "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.source",
      "path" : "SubstanceDefinition.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.note",
      "path" : "SubstanceDefinition.note",
      "short" : "Textual comment about this record of a substance",
      "definition" : "Textual comment about this record of a substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.moiety",
      "path" : "SubstanceDefinition.moiety",
      "short" : "Moiety, for structural modifications",
      "definition" : "Moiety, for structural modifications.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.moiety.stereochemistry",
      "path" : "SubstanceDefinition.moiety.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.moiety.opticalActivity",
      "path" : "SubstanceDefinition.moiety.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property",
      "path" : "SubstanceDefinition.property",
      "short" : "General specifications for this substance, including how it is related to other substances",
      "definition" : "General specifications for this substance, including how it is related to other substances.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.category",
      "path" : "SubstanceDefinition.property.category",
      "short" : "A category for this property, e.g. Physical, Chemical, Enzymatic",
      "definition" : "A category for this property, e.g. Physical, Chemical, Enzymatic.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.code",
      "path" : "SubstanceDefinition.property.code",
      "short" : "Property type e.g. viscosity, pH, isoelectric point",
      "definition" : "Property type e.g. viscosity, pH, isoelectric point.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.parameters",
      "path" : "SubstanceDefinition.property.parameters",
      "short" : "Parameters that were used in the measurement of a property (e.g. for viscosity: measured at 20C with a pH of 7.1)",
      "definition" : "Parameters that were used in the measurement of a property (e.g. for viscosity: measured at 20C with a pH of 7.1).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.definingSubstance[x]",
      "path" : "SubstanceDefinition.property.definingSubstance[x]",
      "short" : "A substance upon which a defining property depends (e.g. for solubility: in water, in alcohol)",
      "definition" : "A substance upon which a defining property depends (e.g. for solubility: in water, in alcohol).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceDefinition",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      },
      {
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.amount[x]",
      "path" : "SubstanceDefinition.property.amount[x]",
      "short" : "Quantitative value for this property",
      "definition" : "Quantitative value for this property.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      },
      {
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.referenceRange",
      "path" : "SubstanceDefinition.property.referenceRange",
      "short" : "Range of typical values",
      "definition" : "Range of typical values.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Range"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.property.source",
      "path" : "SubstanceDefinition.property.source",
      "short" : "Supporting literature",
      "definition" : "Supporting literature.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.referenceInformation",
      "path" : "SubstanceDefinition.referenceInformation",
      "short" : "General information detailing this substance",
      "definition" : "General information detailing this substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure",
      "path" : "SubstanceDefinition.structure",
      "short" : "Structural information",
      "definition" : "Structural information.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.stereochemistry",
      "path" : "SubstanceDefinition.structure.stereochemistry",
      "short" : "Stereochemistry type",
      "definition" : "Stereochemistry type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.opticalActivity",
      "path" : "SubstanceDefinition.structure.opticalActivity",
      "short" : "Optical activity type",
      "definition" : "Optical activity type.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope",
      "path" : "SubstanceDefinition.structure.isotope",
      "short" : "Applicable for single substances that contain a radionuclide or a non-natural isotopic ratio",
      "definition" : "Applicable for single substances that contain a radionuclide or a non-natural isotopic ratio.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.identifier",
      "path" : "SubstanceDefinition.structure.isotope.identifier",
      "short" : "Substance identifier for each non-natural or radioisotope",
      "definition" : "Substance identifier for each non-natural or radioisotope.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.name",
      "path" : "SubstanceDefinition.structure.isotope.name",
      "short" : "Substance name for each non-natural or radioisotope",
      "definition" : "Substance name for each non-natural or radioisotope.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.substitution",
      "path" : "SubstanceDefinition.structure.isotope.substitution",
      "short" : "The type of isotopic substitution present in a single substance",
      "definition" : "The type of isotopic substitution present in a single substance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.halfLife",
      "path" : "SubstanceDefinition.structure.isotope.halfLife",
      "short" : "Half life - for a non-natural nuclide",
      "definition" : "Half life - for a non-natural nuclide.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight",
      "path" : "SubstanceDefinition.structure.isotope.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",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.method",
      "path" : "SubstanceDefinition.structure.isotope.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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.type",
      "path" : "SubstanceDefinition.structure.isotope.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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.isotope.molecularWeight.amount",
      "path" : "SubstanceDefinition.structure.isotope.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" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      }],
      "isSummary" : true
    },
    {
      "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.structure.isotope.molecularWeight",
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.sourceCoding",
      "path" : "SubstanceDefinition.structure.sourceCoding",
      "short" : "Describes the source of information",
      "definition" : "Describes the source of information.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Coding"
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation",
      "path" : "SubstanceDefinition.structure.representation",
      "short" : "Molecular structural representation",
      "definition" : "Molecular structural representation.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation.type",
      "path" : "SubstanceDefinition.structure.representation.type",
      "short" : "The type of structure (e.g. Full, Partial, Representative)",
      "definition" : "The type of structure (e.g. Full, Partial, Representative).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation.representation",
      "path" : "SubstanceDefinition.structure.representation.representation",
      "short" : "The structural representation as text string in a format e.g. InChI, SMILES, MOLFILE, CDX",
      "definition" : "The structural representation as text string in a format e.g. InChI, SMILES, MOLFILE, CDX.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.structure.representation.attachment",
      "path" : "SubstanceDefinition.structure.representation.attachment",
      "short" : "An attached file with the structural representation",
      "definition" : "An attached file with the structural representation.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Attachment"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.code",
      "path" : "SubstanceDefinition.code",
      "short" : "Codes associated with the substance",
      "definition" : "Codes associated with the substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.code.code",
      "path" : "SubstanceDefinition.code.code",
      "short" : "The specific code",
      "definition" : "The specific code.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.name",
      "path" : "SubstanceDefinition.name",
      "short" : "Names applicable to this substance",
      "definition" : "Names applicable to this substance.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.name.name",
      "path" : "SubstanceDefinition.name.name",
      "short" : "The actual name",
      "definition" : "The actual name.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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",
      "isSummary" : true
    },
    {
      "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",
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "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" : "*",
      "contentReference" : "#SubstanceDefinition.structure.isotope.molecularWeight",
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.relationship.type",
      "path" : "SubstanceDefinition.relationship.type",
      "short" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\"",
      "definition" : "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\".",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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" : "Range"
      },
      {
        "code" : "Ratio"
      },
      {
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"
      }],
      "isSummary" : true
    },
    {
      "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"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.nucleicAcid",
      "path" : "SubstanceDefinition.nucleicAcid",
      "short" : "Data items specific to nucleic acids",
      "definition" : "Data items specific to nucleic acids.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.polymer",
      "path" : "SubstanceDefinition.polymer",
      "short" : "Data items specific to polymers",
      "definition" : "Data items specific to polymers.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstancePolymer"]
      }],
      "isSummary" : true
    },
    {
      "id" : "SubstanceDefinition.protein",
      "path" : "SubstanceDefinition.protein",
      "short" : "Data items specific to proteins",
      "definition" : "Data items specific to proteins.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceProtein"]
      }],
      "isSummary" : true
    },
    {
      "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" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial"]
      }],
      "isSummary" : true
    }]
  }
}

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.