SubstanceDefinition-component-substance-drug-pq
type: StructureDefinition
node role: treeRoot
id:
  v: SubstanceDefinition-component-substance-drug-pq
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> SubstanceDefinition 0..* SubstanceDefinition The detailed description of a substance, typically at a level beyond what is used for prescribing grade S 0..* CodeableConcept The quality standard, established benchmark, to which substance complies (e.g. USP/NF, BP) informationSource S 0..* Reference(Citation) Supporting literature manufacturer S 0..* Reference(Organization - Drug PQ) The entity that creates, makes, produces or fabricates the substance Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url site-utilization S 0..* Coding site-utilization URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-site-utilization-pq Binding: Product Site Utilization (example) property S 0..* BackboneElement General specifications for this substance Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url substance-property-range S 0..* Range substance-property-range URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-range-pq substance-property-parameter S 0..* (Complex) substance-property-parameter URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-parameter-pq type S 1..1 CodeableConcept A code expressing the type of property Binding: Substance Property (example) value[x] S 0..1 CodeableConcept, Quantity, date, boolean, Attachment A value for the property Binding: Substance Property Value (example) name S 0..* BackboneElement Names applicable to this substance relationship S 0..* BackboneElement A link between this substance and another Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url impurity-origin S 0..* CodeableConcept impurity-origin URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-impurity-origin-pq Binding: Impurity Origins (example) type S 1..1 CodeableC…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value:
    v: brr
url:
  v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/SubstanceDefinition-component-substance-drug-pq
identifier:
  system:
    v: urn:ietf:rfc:3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.41.42.40
version:
  v: 1.0.0
name:
  v: SubstanceDefinitionComponentSubstanceDrugPq
title:
  v: SubstanceDefinition - Component Substance Drug PQ
status:
  v: active
date:
  v: 2024-05-08T12:53:57+00:00
publisher:
  v: HL7 International / Biomedical Research and Regulation
contact:
  name:
    v: HL7 International - Biomedical Research and Regulation
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/rcrim
description:
  v: This SubstanceDefinition profile represents the chemical or biological details about a substance associated with an active ingredient (molecular weight, molecular formula, stereochemistry, protein or nucleic acid subunits).
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
    display:
      v: World
  text:
    v: World
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: idmp-substance
  uri:
    v: https://www.iso.org/obp/ui/#iso:std:iso:11238
  name:
    v: IDMP Mapping (Substance)
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: SubstanceDefinition
base definition:
  v: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition
  link: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: SubstanceDefinition
    path:
      v: SubstanceDefinition
    short:
      v: The detailed description of a substance, typically at a level beyond what is used for prescribing
    definition:
      v: The detailed description of a substance, typically at a level beyond what is used for prescribing.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: SubstanceDefinition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity, Role, or Act
    mapping:
      identity:
        v: w5
      map:
        v: administrative.medication
    mapping:
      identity:
        v: idmp-substance
      map:
        v: Substance (and derived classes: Chemical, Polymer, Protein, Nucleic_Acid, Structurally_Diverse)
  element:
    id:
      v: SubstanceDefinition.id
    path:
      v: SubstanceDefinition.id
    short:
      v: Logical id of this artifact
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
    min:
      v: 0
    max:
      v: 1

v: true

v: 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.

path:
  v: Resource.id
min:
  v: 0
max:
  v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
  value:
    v: id
code:
  v: http://hl7.org/fhirpath/System.String

v: false

v: false

v: true

id:
  v: SubstanceDefinition.meta
path:
  v: SubstanceDefinition.meta
short:
  v: Metadata about the resource
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: SubstanceDefinition.implicitRules
path:
  v: SubstanceDefinition.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: 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:
  v: 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 its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: SubstanceDefinition.language
path:
  v: SubstanceDefinition.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages

id:
  v: SubstanceDefinition.text
path:
  v: SubstanceDefinition.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: 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:
  v: Contained resources do not have a 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:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: SubstanceDefinition.contained
path:
  v: SubstanceDefinition.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: 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:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.extension
path:
  v: SubstanceDefinition.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.modifierExtension
path:
  v: SubstanceDefinition.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.identifier
path:
  v: SubstanceDefinition.identifier
short:
  v: Identifier by which this substance is known
definition:
  v: Identifier by which this substance is known.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Substance_Id

id:
  v: SubstanceDefinition.version
path:
  v: SubstanceDefinition.version
short:
  v: A business level version identifier of the substance
definition:
  v: A business level version identifier of the substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Version.Version_Number

id:
  v: SubstanceDefinition.status
path:
  v: SubstanceDefinition.status
short:
  v: Status of substance within the catalogue e.g. active, retired
definition:
  v: Status of substance within the catalogue e.g. active, retired.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PublicationStatus
  strength:
    v: preferred
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    link: http://hl7.org/fhir/ValueSet/publication-status
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.classification
path:
  v: SubstanceDefinition.classification
short:
  v: A categorization, high level e.g. polymer or nucleic acid, or food, chemical, biological, or lower e.g. polymer linear or branch chain, or type of impurity
definition:
  v: A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.classification
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Classification.Substance_Classification and Substance_classification.Substance_Classification_Subtype

id:
  v: SubstanceDefinition.domain
path:
  v: SubstanceDefinition.domain
short:
  v: If the substance applies to human or veterinary use
definition:
  v: If the substance applies to human or veterinary use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.domain
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: MedicinalProductType
  strength:
    v: example
  description:
    v: Applicable domain for this product (e.g. human, veterinary).
  value set:
    v: http://hl7.org/fhir/ValueSet/medicinal-product-domain
    link: http://hl7.org/fhir/ValueSet/medicinal-product-domain
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Classification.Substance_Classification (and Code and Type) and Substance_Classification.Substance_Classification_Subtype

id:
  v: SubstanceDefinition.grade
path:
  v: SubstanceDefinition.grade
short:
  v: The quality standard, established benchmark, to which substance complies (e.g. USP/NF, BP)
definition:
  v: The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.grade
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceGrade
  strength:
    v: example
  description:
    v: The quality standard, established benchmark, to which a substance complies
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-grade
    link: http://hl7.org/fhir/ValueSet/substance-grade
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Specified_Substance_Group_3.Grade

id:
  v: SubstanceDefinition.description
path:
  v: SubstanceDefinition.description
short:
  v: Textual description of the substance
definition:
  v: Textual description of the substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Comment

id:
  v: SubstanceDefinition.informationSource
path:
  v: SubstanceDefinition.informationSource
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.informationSource
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Citation
    link: http://hl7.org/fhir/StructureDefinition/Citation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Reference_Source

id:
  v: SubstanceDefinition.note
path:
  v: SubstanceDefinition.note
short:
  v: Textual comment about the substance's catalogue or registry record
definition:
  v: Textual comment about the substance's catalogue or registry record.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.manufacturer
path:
  v: SubstanceDefinition.manufacturer
short:
  v: The entity that creates, makes, produces or fabricates the substance
definition:
  v: The entity that creates, makes, produces or fabricates the substance. This is a set of potential manufacturers but is not necessarily comprehensive.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.manufacturer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Organization-drug-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Organization-drug-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.manufacturer.id
path:
  v: SubstanceDefinition.manufacturer.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.manufacturer.extension
path:
  v: SubstanceDefinition.manufacturer.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: SubstanceDefinition.manufacturer.extension:site-utilization
path:
  v: SubstanceDefinition.manufacturer.extension
slice name:
  v: site-utilization
short:
  v: site-utilization
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-site-utilization-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-site-utilization-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: SubstanceDefinition.manufacturer.reference
path:
  v: SubstanceDefinition.manufacturer.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.manufacturer.type
path:
  v: SubstanceDefinition.manufacturer.type
short:
  v: Type the reference refers to (e.g. "Patient") - must be a resource in resources
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a known RESTful URL) or by resolving the target of the reference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.manufacturer.identifier
path:
  v: SubstanceDefinition.manufacturer.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any). This element only allows for a single identifier. In the case where additional identifers are required, use the [http://hl7.org/fhir/StructureDefinition/additionalIdentifier](http://hl7.org/fhir/extensions/StructureDefinition-additionalIdentifier.html) extension.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: SubstanceDefinition.manufacturer.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: SubstanceDefinition.manufacturer.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.supplier
path:
  v: SubstanceDefinition.supplier
short:
  v: An entity that is the source for the substance. It may be different from the manufacturer
definition:
  v: An entity that is the source for the substance. It may be different from the manufacturer. Supplier is synonymous to a distributor.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.supplier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.moiety
path:
  v: SubstanceDefinition.moiety
short:
  v: Moiety, for structural modifications
definition:
  v: Moiety, for structural modifications.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.moiety
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Moiety

id:
  v: SubstanceDefinition.moiety.id
path:
  v: SubstanceDefinition.moiety.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.moiety.extension
path:
  v: SubstanceDefinition.moiety.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.moiety.modifierExtension
path:
  v: SubstanceDefinition.moiety.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.moiety.role
path:
  v: SubstanceDefinition.moiety.role
short:
  v: Role that the moiety is playing
definition:
  v: Role that the moiety is playing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.role
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Moiety_Role

id:
  v: SubstanceDefinition.moiety.identifier
path:
  v: SubstanceDefinition.moiety.identifier
short:
  v: Identifier by which this moiety substance is known
definition:
  v: Identifier by which this moiety substance is known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Moiety_Id

id:
  v: SubstanceDefinition.moiety.name
path:
  v: SubstanceDefinition.moiety.name
short:
  v: Textual name for this moiety substance
definition:
  v: Textual name for this moiety substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Moiety_Name

id:
  v: SubstanceDefinition.moiety.stereochemistry
path:
  v: SubstanceDefinition.moiety.stereochemistry
short:
  v: Stereochemistry type
definition:
  v: Stereochemistry type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.stereochemistry
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceStereochemistry
  strength:
    v: example
  description:
    v: The optical rotation type of a substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-stereochemistry
    link: http://hl7.org/fhir/ValueSet/substance-stereochemistry
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Stereochemistry

id:
  v: SubstanceDefinition.moiety.opticalActivity
path:
  v: SubstanceDefinition.moiety.opticalActivity
short:
  v: Optical activity type
definition:
  v: Optical activity type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.opticalActivity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceOpticalActivity
  strength:
    v: example
  description:
    v: The optical rotation type of a substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-optical-activity
    link: http://hl7.org/fhir/ValueSet/substance-optical-activity
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Optical_Activity

id:
  v: SubstanceDefinition.moiety.molecularFormula
path:
  v: SubstanceDefinition.moiety.molecularFormula
short:
  v: Molecular formula for this moiety (e.g. with the Hill system)
definition:
  v: Molecular formula for this moiety of this substance, typically using the Hill system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.molecularFormula
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Molecular_Formula

id:
  v: SubstanceDefinition.moiety.amount[x]
path:
  v: SubstanceDefinition.moiety.amount[x]
short:
  v: Quantitative value for this moiety
definition:
  v: Quantitative value for this moiety.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.amount[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Moiety.Amount

id:
  v: SubstanceDefinition.moiety.measurementType
path:
  v: SubstanceDefinition.moiety.measurementType
short:
  v: The measurement type of the quantitative value
definition:
  v: The measurement type of the quantitative value. In capturing the actual relative amounts of substances or molecular fragments it may be necessary to indicate whether the amount refers to, for example, a mole ratio or weight ratio.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.moiety.measurementType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceAmountType
  strength:
    v: example
  description:
    v: The relationship between two substance types.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-amount-type
    link: http://hl7.org/fhir/ValueSet/substance-amount-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Amount.Amount_Type

id:
  v: SubstanceDefinition.characterization
path:
  v: SubstanceDefinition.characterization
short:
  v: General specifications for this substance
definition:
  v: General specifications for this substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.characterization
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.id
path:
  v: SubstanceDefinition.characterization.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.extension
path:
  v: SubstanceDefinition.characterization.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.modifierExtension
path:
  v: SubstanceDefinition.characterization.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.characterization.technique
path:
  v: SubstanceDefinition.characterization.technique
short:
  v: The method used to find the characterization e.g. HPLC
definition:
  v: The method used to elucidate the characterization of the drug substance. Example: HPLC.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.characterization.technique
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceStructureTechnique
  strength:
    v: example
  description:
    v: The method used to elucidate the characterization of the drug substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-structure-technique
    link: http://hl7.org/fhir/ValueSet/substance-structure-technique
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.form
path:
  v: SubstanceDefinition.characterization.form
short:
  v: Describes the nature of the chemical entity and explains, for instance, whether this is a base or a salt form
definition:
  v: Describes the nature of the chemical entity and explains, for instance, whether this is a base or a salt form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.characterization.form
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceForm
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-form
    link: http://hl7.org/fhir/ValueSet/substance-form
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.description
path:
  v: SubstanceDefinition.characterization.description
short:
  v: The description or justification in support of the interpretation of the data file
definition:
  v: The description or justification in support of the interpretation of the data file.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.characterization.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.characterization.file
path:
  v: SubstanceDefinition.characterization.file
short:
  v: The data produced by the analytical instrument or a pictorial representation of that data. Examples: a JCAMP, JDX, or ADX file, or a chromatogram or spectrum analysis
definition:
  v: The data produced by the analytical instrument or a pictorial representation of that data. Examples: a JCAMP, JDX, or ADX file, or a chromatogram or spectrum analysis.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.characterization.file
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Attachment
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.property
path:
  v: SubstanceDefinition.property
short:
  v: General specifications for this substance
definition:
  v: General specifications for this substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.property
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Property

id:
  v: SubstanceDefinition.property.id
path:
  v: SubstanceDefinition.property.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.property.extension
path:
  v: SubstanceDefinition.property.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: SubstanceDefinition.property.extension:substance-property-range
path:
  v: SubstanceDefinition.property.extension
slice name:
  v: substance-property-range
short:
  v: substance-property-range
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-range-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-range-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: SubstanceDefinition.property.extension:substance-property-parameter
path:
  v: SubstanceDefinition.property.extension
slice name:
  v: substance-property-parameter
short:
  v: substance-property-parameter
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-parameter-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-parameter-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: SubstanceDefinition.property.modifierExtension
path:
  v: SubstanceDefinition.property.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.property.type
path:
  v: SubstanceDefinition.property.type
short:
  v: A code expressing the type of property
definition:
  v: A code expressing the type of property.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.property.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-pq
    link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-pq
mapping:
  identity:
    v: idmp-substance
  map:
    v: Property.Property_Type

id:
  v: SubstanceDefinition.property.value[x]
path:
  v: SubstanceDefinition.property.value[x]
short:
  v: A value for the property
definition:
  v: A value for the property.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.property.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: Quantity
type:
  code:
    v: date
type:
  code:
    v: boolean
type:
  code:
    v: Attachment
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-value-pq
    link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-value-pq
mapping:
  identity:
    v: idmp-substance
  map:
    v: Physical Characteristics, attribute's value

id:
  v: SubstanceDefinition.referenceInformation
path:
  v: SubstanceDefinition.referenceInformation
short:
  v: General information detailing this substance
definition:
  v: General information detailing this substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.referenceInformation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation
    link: http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Reference_Information

id:
  v: SubstanceDefinition.molecularWeight
path:
  v: SubstanceDefinition.molecularWeight
short:
  v: The average mass of a molecule of a compound
definition:
  v: The average mass of a molecule of a compound compared to 1/12 the mass of carbon 12 and calculated as the sum of the atomic weights of the constituent atoms.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.molecularWeight
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: SubstanceDefinition.molecularWeight.id
path:
  v: SubstanceDefinition.molecularWeight.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.molecularWeight.extension
path:
  v: SubstanceDefinition.molecularWeight.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.molecularWeight.modifierExtension
path:
  v: SubstanceDefinition.molecularWeight.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.molecularWeight.method
path:
  v: SubstanceDefinition.molecularWeight.method
short:
  v: The method by which the weight was determined
definition:
  v: The method by which the molecular weight was determined.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.molecularWeight.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceWeightMethod
  strength:
    v: example
  description:
    v: The method by which the substance weight was measured.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-weight-method
    link: http://hl7.org/fhir/ValueSet/substance-weight-method
mapping:
  identity:
    v: idmp-substance
  map:
    v: Molecular_Weight.Molecular_Weight_Method

id:
  v: SubstanceDefinition.molecularWeight.type
path:
  v: SubstanceDefinition.molecularWeight.type
short:
  v: Type of molecular weight e.g. exact, average, weight average
definition:
  v: Type of molecular weight such as exact, average (also known as. number average), weight average.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.molecularWeight.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceWeightType
  strength:
    v: example
  description:
    v: The type of substance weight measurement.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-weight-type
    link: http://hl7.org/fhir/ValueSet/substance-weight-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Molecular_Weight.Molecular_Weight_Type

id:
  v: SubstanceDefinition.molecularWeight.amount
path:
  v: SubstanceDefinition.molecularWeight.amount
short:
  v: Used to capture quantitative values for a variety of elements
definition:
  v: 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:
  v: 1
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.molecularWeight.amount
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Quantity
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Molecular_Weight.Amount

id:
  v: SubstanceDefinition.structure
path:
  v: SubstanceDefinition.structure
short:
  v: Structural information
definition:
  v: Structural information.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Structure

id:
  v: SubstanceDefinition.structure.id
path:
  v: SubstanceDefinition.structure.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.extension
path:
  v: SubstanceDefinition.structure.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.modifierExtension
path:
  v: SubstanceDefinition.structure.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.structure.stereochemistry
path:
  v: SubstanceDefinition.structure.stereochemistry
short:
  v: Stereochemistry type
definition:
  v: Stereochemistry type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.stereochemistry
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceStereochemistry
  strength:
    v: example
  description:
    v: The optical rotation type of a substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-stereochemistry
    link: http://hl7.org/fhir/ValueSet/substance-stereochemistry
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Stereochemistry

id:
  v: SubstanceDefinition.structure.opticalActivity
path:
  v: SubstanceDefinition.structure.opticalActivity
short:
  v: Optical activity type
definition:
  v: Optical activity type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.opticalActivity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceOpticalActivity
  strength:
    v: example
  description:
    v: The optical rotation type of a substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-optical-activity
    link: http://hl7.org/fhir/ValueSet/substance-optical-activity
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Optical_Activity

id:
  v: SubstanceDefinition.structure.molecularFormula
path:
  v: SubstanceDefinition.structure.molecularFormula
short:
  v: An expression which states the number and type of atoms present in a molecule of a substance
definition:
  v: An expression which states the number and type of atoms present in a molecule of a substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.molecularFormula
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Molecular_Formula

id:
  v: SubstanceDefinition.structure.molecularFormulaByMoiety
path:
  v: SubstanceDefinition.structure.molecularFormulaByMoiety
short:
  v: Specified per moiety according to the Hill system
definition:
  v: Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.molecularFormulaByMoiety
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Molecular_Formula_By_Moiety

id:
  v: SubstanceDefinition.structure.molecularWeight
path:
  v: SubstanceDefinition.structure.molecularWeight
short:
  v: The molecular weight or weight range
definition:
  v: The molecular weight or weight range (for proteins, polymers or nucleic acids).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.molecularWeight
  min:
    v: 0
  max:
    v: 1
content reference:
  v: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition#SubstanceDefinition.molecularWeight
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Molecular_Weight

id:
  v: SubstanceDefinition.structure.technique
path:
  v: SubstanceDefinition.structure.technique
short:
  v: The method used to find the structure e.g. X-ray, NMR
definition:
  v: The method used to elucidate the structure of the drug substance. Examples: X-ray, NMR, Peptide mapping, Ligand binding assay.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.structure.technique
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceStructureTechnique
  strength:
    v: example
  description:
    v: The method used to elucidate the structure of the drug substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-structure-technique
    link: http://hl7.org/fhir/ValueSet/substance-structure-technique
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.sourceDocument
path:
  v: SubstanceDefinition.structure.sourceDocument
short:
  v: Source of information for the structure
definition:
  v: The source of information about the structure.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.structure.sourceDocument
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Reference_Source

id:
  v: SubstanceDefinition.structure.representation
path:
  v: SubstanceDefinition.structure.representation
short:
  v: A depiction of the structure of the substance
definition:
  v: A depiction of the structure of the substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.structure.representation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structure.Structural_Representation

id:
  v: SubstanceDefinition.structure.representation.id
path:
  v: SubstanceDefinition.structure.representation.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.representation.extension
path:
  v: SubstanceDefinition.structure.representation.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.representation.modifierExtension
path:
  v: SubstanceDefinition.structure.representation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.structure.representation.type
path:
  v: SubstanceDefinition.structure.representation.type
short:
  v: The kind of structural representation (e.g. full, partial)
definition:
  v: The kind of structural representation (e.g. full, partial).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.representation.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceRepresentationType
  strength:
    v: example
  description:
    v: A format of a substance representation.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-representation-type
    link: http://hl7.org/fhir/ValueSet/substance-representation-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structural_Representation.Structural_Representation_Type

id:
  v: SubstanceDefinition.structure.representation.representation
path:
  v: SubstanceDefinition.structure.representation.representation
short:
  v: The structural representation as a text string in a standard format
definition:
  v: The structural representation as a text string in a standard format.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.representation.representation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structural_Representation.Structural_Representation

id:
  v: SubstanceDefinition.structure.representation.format
path:
  v: SubstanceDefinition.structure.representation.format
short:
  v: The format of the representation e.g. InChI, SMILES, MOLFILE (note: not the physical file format)
definition:
  v: The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF. The logical content type rather than the physical file format of a document.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.representation.format
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceRepresentationFormat
  strength:
    v: example
  description:
    v: A format of a substance representation.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-representation-format
    link: http://hl7.org/fhir/ValueSet/substance-representation-format
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.structure.representation.document
path:
  v: SubstanceDefinition.structure.representation.document
short:
  v: An attachment with the structural representation e.g. a structure graphic or AnIML file
definition:
  v: An attached file with the structural representation e.g. a molecular structure graphic of the substance, a JCAMP or AnIML file.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.structure.representation.document
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Structural_Representation.Structural_Representation_Attachment

id:
  v: SubstanceDefinition.code
path:
  v: SubstanceDefinition.code
short:
  v: Codes associated with the substance
definition:
  v: Codes associated with the substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Substance_Code

id:
  v: SubstanceDefinition.code.id
path:
  v: SubstanceDefinition.code.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.code.extension
path:
  v: SubstanceDefinition.code.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.code.modifierExtension
path:
  v: SubstanceDefinition.code.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.code.code
path:
  v: SubstanceDefinition.code.code
short:
  v: The specific code
definition:
  v: The specific code.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.code.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Code.Code, Substance_Code.Code_System, Substance_Code.Code_System_Id

id:
  v: SubstanceDefinition.code.status
path:
  v: SubstanceDefinition.code.status
short:
  v: Status of the code assignment, for example 'provisional', 'approved'
definition:
  v: Status of the code assignment, for example 'provisional', 'approved'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.code.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PublicationStatus
  strength:
    v: preferred
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    link: http://hl7.org/fhir/ValueSet/publication-status
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Code.Code_System_Status

id:
  v: SubstanceDefinition.code.statusDate
path:
  v: SubstanceDefinition.code.statusDate
short:
  v: The date at which the code status was changed
definition:
  v: The date at which the code status was changed as part of the terminology maintenance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.code.statusDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Code.Code_Change_Date

id:
  v: SubstanceDefinition.code.note
path:
  v: SubstanceDefinition.code.note
short:
  v: Any comment can be provided in this field
definition:
  v: Any comment can be provided in this field, if necessary.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.code.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Code.Comment

id:
  v: SubstanceDefinition.code.source
path:
  v: SubstanceDefinition.code.source
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.code.source
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Code.Reference_Source

id:
  v: SubstanceDefinition.name
path:
  v: SubstanceDefinition.name
short:
  v: Names applicable to this substance
definition:
  v: Names applicable to this substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Substance_Name

id:
  v: SubstanceDefinition.name.id
path:
  v: SubstanceDefinition.name.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.extension
path:
  v: SubstanceDefinition.name.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.modifierExtension
path:
  v: SubstanceDefinition.name.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.name.name
path:
  v: SubstanceDefinition.name.name
short:
  v: The actual name
definition:
  v: The actual name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Substance_Name

id:
  v: SubstanceDefinition.name.type
path:
  v: SubstanceDefinition.name.type
short:
  v: Name type e.g. 'systematic', 'scientific, 'brand'
definition:
  v: Name type, for example 'systematic', 'scientific, 'brand'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceNameType
  strength:
    v: example
  description:
    v: The type of a name given to a substance.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-name-type
    link: http://hl7.org/fhir/ValueSet/substance-name-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Substance_Name_Type

id:
  v: SubstanceDefinition.name.status
path:
  v: SubstanceDefinition.name.status
short:
  v: The status of the name e.g. 'current', 'proposed'
definition:
  v: The status of the name, for example 'current', 'proposed'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PublicationStatus
  strength:
    v: preferred
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    link: http://hl7.org/fhir/ValueSet/publication-status
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.preferred
path:
  v: SubstanceDefinition.name.preferred
short:
  v: If this is the preferred name for this substance
definition:
  v: If this is the preferred name for this substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.preferred
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: If this value is not present, there is no statement being made about whether this is the preferred name or not. No inference can be made
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.language
path:
  v: SubstanceDefinition.name.language
short:
  v: Human language that the name is written in
definition:
  v: Human language that the name is written in.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.language
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Language

id:
  v: SubstanceDefinition.name.domain
path:
  v: SubstanceDefinition.name.domain
short:
  v: The use context of this name e.g. as an active ingredient or as a food colour additive
definition:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.domain
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceNameDomain
  strength:
    v: example
  description:
    v: The use context of a substance name for example if there is a different name when used as a drug active ingredient as opposed to a food colour additive.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-name-domain
    link: http://hl7.org/fhir/ValueSet/substance-name-domain
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Substance_Name_Domain

id:
  v: SubstanceDefinition.name.jurisdiction
path:
  v: SubstanceDefinition.name.jurisdiction
short:
  v: The jurisdiction where this name applies
definition:
  v: The jurisdiction where this name applies.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Jurisdiction
  strength:
    v: example
  description:
    v: Jurisdiction codes
  value set:
    v: http://hl7.org/fhir/ValueSet/jurisdiction
    link: http://hl7.org/fhir/ValueSet/jurisdiction
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Jurisdiction

id:
  v: SubstanceDefinition.name.synonym
path:
  v: SubstanceDefinition.name.synonym
short:
  v: A synonym of this particular name, by which the substance is also known
definition:
  v: A synonym of this particular name, by which the substance is also known.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.synonym
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition#SubstanceDefinition.name
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.translation
path:
  v: SubstanceDefinition.name.translation
short:
  v: A translation for this name into another human language
definition:
  v: A translation for this name into another human language.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.translation
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition#SubstanceDefinition.name
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.official
path:
  v: SubstanceDefinition.name.official
short:
  v: Details of the official nature of this name
definition:
  v: Details of the official nature of this name.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.official
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Official_Name

id:
  v: SubstanceDefinition.name.official.id
path:
  v: SubstanceDefinition.name.official.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.official.extension
path:
  v: SubstanceDefinition.name.official.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.name.official.modifierExtension
path:
  v: SubstanceDefinition.name.official.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.name.official.authority
path:
  v: SubstanceDefinition.name.official.authority
short:
  v: Which authority uses this official name
definition:
  v: Which authority uses this official name.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.official.authority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceNameAuthority
  strength:
    v: preferred
  description:
    v: An authority that officates substance names.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-name-authority
    link: http://hl7.org/fhir/ValueSet/substance-name-authority
mapping:
  identity:
    v: idmp-substance
  map:
    v: Official_Name.Official_Name_Type

id:
  v: SubstanceDefinition.name.official.status
path:
  v: SubstanceDefinition.name.official.status
short:
  v: The status of the official name, for example 'draft', 'active'
definition:
  v: The status of the official name, for example 'draft', 'active', 'retired'.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.official.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PublicationStatus
  strength:
    v: preferred
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    link: http://hl7.org/fhir/ValueSet/publication-status
mapping:
  identity:
    v: idmp-substance
  map:
    v: Official_Name.Official_Name_Status

id:
  v: SubstanceDefinition.name.official.date
path:
  v: SubstanceDefinition.name.official.date
short:
  v: Date of official name change
definition:
  v: Date of the official name change.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.name.official.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Official_Name.Official_Name_Status_Change_Date

id:
  v: SubstanceDefinition.name.source
path:
  v: SubstanceDefinition.name.source
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.name.source
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Name.Reference_Source

id:
  v: SubstanceDefinition.relationship
path:
  v: SubstanceDefinition.relationship
short:
  v: A link between this substance and another
definition:
  v: A link between this substance and another, with details of the relationship.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.relationship
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Reference_Information.Relationship

id:
  v: SubstanceDefinition.relationship.id
path:
  v: SubstanceDefinition.relationship.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.relationship.extension
path:
  v: SubstanceDefinition.relationship.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: SubstanceDefinition.relationship.extension:impurity-origin
path:
  v: SubstanceDefinition.relationship.extension
slice name:
  v: impurity-origin
short:
  v: impurity-origin
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-impurity-origin-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-impurity-origin-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: SubstanceDefinition.relationship.modifierExtension
path:
  v: SubstanceDefinition.relationship.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.relationship.substanceDefinition[x]
path:
  v: SubstanceDefinition.relationship.substanceDefinition[x]
short:
  v: A pointer to another substance, as a resource or a representational code
definition:
  v: A pointer to another substance, as a resource or just a representational code.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.substanceDefinition[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition
    link: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Related_Substance_Id

id:
  v: SubstanceDefinition.relationship.type
path:
  v: SubstanceDefinition.relationship.type
short:
  v: For example "salt to parent", "active moiety"
definition:
  v: For example "salt to parent", "active moiety", "starting material", "polymorph", "impurity of".
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-impurity-type-pq
    link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-impurity-type-pq
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Relationship_Type

id:
  v: SubstanceDefinition.relationship.isDefining
path:
  v: SubstanceDefinition.relationship.isDefining
short:
  v: For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible relationships
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.isDefining
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: If this value is not present, there is no statement being made about whether this is a defining relationship or not. No inference can be made
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Is_Defining

id:
  v: SubstanceDefinition.relationship.amount[x]
path:
  v: SubstanceDefinition.relationship.amount[x]
short:
  v: A numeric factor for the relationship, e.g. that a substance salt has some percentage of active substance in relation to some other
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.amount[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
type:
  code:
    v: Ratio
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Amount.Quantity

id:
  v: SubstanceDefinition.relationship.ratioHighLimitAmount
path:
  v: SubstanceDefinition.relationship.ratioHighLimitAmount
short:
  v: For use when the numeric has an uncertain range
definition:
  v: For use when the numeric has an uncertain range.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.ratioHighLimitAmount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Amount.Quantity.High_Limit

id:
  v: SubstanceDefinition.relationship.comparator
path:
  v: SubstanceDefinition.relationship.comparator
short:
  v: An operator for the amount, for example "average", "approximately", "less than"
definition:
  v: An operator for the amount, for example "average", "approximately", "less than".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.relationship.comparator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SubstanceAmountType
  strength:
    v: example
  description:
    v: The relationship between two substance types.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-amount-type
    link: http://hl7.org/fhir/ValueSet/substance-amount-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Amount_Type

id:
  v: SubstanceDefinition.relationship.source
path:
  v: SubstanceDefinition.relationship.source
short:
  v: Supporting literature
definition:
  v: Supporting literature.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.relationship.source
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    link: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance_Relationship.Reference_Source

id:
  v: SubstanceDefinition.nucleicAcid
path:
  v: SubstanceDefinition.nucleicAcid
short:
  v: Data items specific to nucleic acids
definition:
  v: Data items specific to nucleic acids.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.nucleicAcid
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid
    link: http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: (used to add specifics of Nucleic Acids to Substances)

id:
  v: SubstanceDefinition.polymer
path:
  v: SubstanceDefinition.polymer
short:
  v: Data items specific to polymers
definition:
  v: Data items specific to polymers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.polymer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SubstancePolymer
    link: http://hl7.org/fhir/StructureDefinition/SubstancePolymer
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: (used to add specifics of Polymers to Substances)

id:
  v: SubstanceDefinition.protein
path:
  v: SubstanceDefinition.protein
short:
  v: Data items specific to proteins
definition:
  v: Data items specific to proteins.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.protein
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SubstanceProtein
    link: http://hl7.org/fhir/StructureDefinition/SubstanceProtein
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: (used to add specifics of Proteins to Substances)

id:
  v: SubstanceDefinition.sourceMaterial
path:
  v: SubstanceDefinition.sourceMaterial
short:
  v: Material or taxonomic/anatomical source
definition:
  v: Material or taxonomic/anatomical source for the substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.sourceMaterial
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: idmp-substance
  map:
    v: Substance.Source_Material

id:
  v: SubstanceDefinition.sourceMaterial.id
path:
  v: SubstanceDefinition.sourceMaterial.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.sourceMaterial.extension
path:
  v: SubstanceDefinition.sourceMaterial.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SubstanceDefinition.sourceMaterial.modifierExtension
path:
  v: SubstanceDefinition.sourceMaterial.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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:
  v: 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](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SubstanceDefinition.sourceMaterial.type
path:
  v: SubstanceDefinition.sourceMaterial.type
short:
  v: Classification of the origin of the raw material. e.g. cat hair is an Animal source type
definition:
  v: A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.sourceMaterial.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SourceMaterialType
  strength:
    v: example
  description:
    v: A classification that provides the origin of the substance raw material.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-source-material-type
    link: http://hl7.org/fhir/ValueSet/substance-source-material-type
mapping:
  identity:
    v: idmp-substance
  map:
    v: Source_Material.Source_Material_Type

id:
  v: SubstanceDefinition.sourceMaterial.genus
path:
  v: SubstanceDefinition.sourceMaterial.genus
short:
  v: The genus of an organism e.g. the Latin epithet of the plant/animal scientific name
definition:
  v: The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.sourceMaterial.genus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SourceMaterialGenus
  strength:
    v: example
  description:
    v: The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-source-material-genus
    link: http://hl7.org/fhir/ValueSet/substance-source-material-genus
mapping:
  identity:
    v: idmp-substance
  map:
    v: Source_Material.Organism.Genus

id:
  v: SubstanceDefinition.sourceMaterial.species
path:
  v: SubstanceDefinition.sourceMaterial.species
short:
  v: The species of an organism e.g. the Latin epithet of the species of the plant/animal
definition:
  v: The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.sourceMaterial.species
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SourceMaterialSpecies
  strength:
    v: example
  description:
    v: A species of origin a substance raw material.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-source-material-species
    link: http://hl7.org/fhir/ValueSet/substance-source-material-species
mapping:
  identity:
    v: idmp-substance
  map:
    v: Source_Material.Organism.Species

id:
  v: SubstanceDefinition.sourceMaterial.part
path:
  v: SubstanceDefinition.sourceMaterial.part
short:
  v: An anatomical origin of the source material within an organism
definition:
  v: An anatomical origin of the source material within an organism.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SubstanceDefinition.sourceMaterial.part
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: SourceMaterialPart
  strength:
    v: example
  description:
    v: An anatomical origin of the source material within an organism.
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-source-material-part
    link: http://hl7.org/fhir/ValueSet/substance-source-material-part
mapping:
  identity:
    v: idmp-substance
  map:
    v: Source_Material.Part_Description.Part

id:
  v: SubstanceDefinition.sourceMaterial.countryOfOrigin
path:
  v: SubstanceDefinition.sourceMaterial.countryOfOrigin
short:
  v: The country or countries where the material is harvested
definition:
  v: The country or countries where the material is harvested.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SubstanceDefinition.sourceMaterial.countryOfOrigin
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Country
  strength:
    v: required
  description:
    v: Jurisdiction codes
  value set:
    v: http://hl7.org/fhir/ValueSet/country|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: idmp-substance
  map:
    v: Source_Material.Country_Of_Origin

element:
  id:
    v: SubstanceDefinition
  path:
    v: SubstanceDefinition
element:
  id:
    v: SubstanceDefinition.grade
  path:
    v: SubstanceDefinition.grade
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.informationSource
  path:
    v: SubstanceDefinition.informationSource
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.manufacturer
  path:
    v: SubstanceDefinition.manufacturer
  type:
    code:
      v: Reference
    target profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Organization-drug-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Organization-drug-pq
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.manufacturer.extension
  path:
    v: SubstanceDefinition.manufacturer.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: SubstanceDefinition.manufacturer.extension:site-utilization
  path:
    v: SubstanceDefinition.manufacturer.extension
  slice name:
    v: site-utilization
  short:
    v: site-utilization
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-site-utilization-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-site-utilization-pq
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.property
  path:
    v: SubstanceDefinition.property
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.property.extension
  path:
    v: SubstanceDefinition.property.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: SubstanceDefinition.property.extension:substance-property-range
  path:
    v: SubstanceDefinition.property.extension
  slice name:
    v: substance-property-range
  short:
    v: substance-property-range
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-range-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-range-pq
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.property.extension:substance-property-parameter
  path:
    v: SubstanceDefinition.property.extension
  slice name:
    v: substance-property-parameter
  short:
    v: substance-property-parameter
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-parameter-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-substance-property-parameter-pq
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.property.type
  path:
    v: SubstanceDefinition.property.type
  must support:
    v: true
  binding:
    strength:
      v: example
    value set:
      v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-pq
      link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-pq
element:
  id:
    v: SubstanceDefinition.property.value[x]
  path:
    v: SubstanceDefinition.property.value[x]
  must support:
    v: true
  binding:
    strength:
      v: example
    value set:
      v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-value-pq
      link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-substance-property-value-pq
element:
  id:
    v: SubstanceDefinition.name
  path:
    v: SubstanceDefinition.name
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.relationship
  path:
    v: SubstanceDefinition.relationship
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.relationship.extension
  path:
    v: SubstanceDefinition.relationship.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: SubstanceDefinition.relationship.extension:impurity-origin
  path:
    v: SubstanceDefinition.relationship.extension
  slice name:
    v: impurity-origin
  short:
    v: impurity-origin
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-impurity-origin-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-impurity-origin-pq
  must support:
    v: true
element:
  id:
    v: SubstanceDefinition.relationship.type
  path:
    v: SubstanceDefinition.relationship.type
  must support:
    v: true
  binding:
    strength:
      v: example

id:
  v: SubstanceDefinition.sourceMaterial
path:
  v: SubstanceDefinition.sourceMaterial
must support:
  v: true