StructureMap
type: StructureDefinition
node role: treeRoot
id:
  v: StructureMap
meta:
  last updated:
    v: 2021-01-05T10:01:24.148+11:00
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition StructureMap Last updated: 2021-01-05 10:01:24+1100 Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> StructureMap C 0..* DomainResource A Map of relationships between 2 structures that can be used to transform data Elements defined in Ancestors:id, meta, implicitRules, language, <a href="http://hl7.org/fhir/R5/domainresource.html" title="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.">text, contained, <a href="http://hl7.org/fhir/R5/domainresource.html" title="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.">extension, <a href="http://hl7.org/fhir/R5/domainresource.html" title="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 process…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-category
    l: structuredefinition-category
  value: String
    v: Foundation.Conformance
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 2
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category
    l: structuredefinition-security-category
  value: Code
    v: anonymous
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status
    l: entered-in-error-status
  value: Code
    v: .status = retired
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-implements
    l: structuredefinition-implements
  value: Canonical
    v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
    l: CanonicalResource
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-implements
    l: structuredefinition-implements
  value: Canonical
    v: http://hl7.org/fhir/StructureDefinition/MetadataResource
    l: MetadataResource
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/additional-resource
    l: additional-resource
  value: Boolean
    v: true
url:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap
  l: StructureMap
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.5.1100
version:
  v: 0.1.0
name:
  v: StructureMap
title:
  v: Structure Map
status:
  v: draft
date:
  v: 2021-01-05T10:01:24+11:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  name:
    v: HL7 International / FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: A Map of relationships between 2 structures that can be used to transform data.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 6.0.0-ballot3
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: objimpl
  uri:
    v: http://hl7.org/fhir/object-implementation
    l: object-implementation
  name:
    v: Object Implementation Information
kind:
  v: resource
abstract:
  v: false
type:
  v: StructureMap
  l: StructureMap
base definition:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 6.0.0-ballot3
  element:
    id:
      v: StructureMap
    extension:
      url:
        v: http://hl7.org/fhir/build/StructureDefinition/committee-notes
        l: committee-notes
      value: String
        v: 0;0.
    path:
      v: StructureMap
    short:
      v: A Map of relationships between 2 structures that can be used to transform data
    definition:
      v: A Map of relationships between 2 structures that can be used to transform data.
    alias:
      v: Template
    alias:
      v: Profile
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: DomainResource
      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

v: contained.contained.empty()

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.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

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
  l: DomainResource

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
  l: DomainResource

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
    l: elementdefinition-bestpractice
  value: Boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
    l: elementdefinition-bestpractice-explanation
  value: Markdown
    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.
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
  l: DomainResource

key:
  v: cnl-0
severity:
  v: warning
human:
  v: Name should be usable as an identifier for the module by machine processing applications such as code generation
expression:
  v: name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
source:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap
  l: StructureMap

v: false

v: false

v: false

identity:
  v: rim
map:
  v: n/a,Entity. Role,or Act,Entity,Role,or Act

identity:
  v: w5
map:
  v: conformance.content

id:
  v: StructureMap.id
path:
  v: StructureMap.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
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: StructureMap.meta
path:
  v: StructureMap.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
    l: 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
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: StructureMap.implicitRules
path:
  v: StructureMap.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
    l: 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
    l: 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: StructureMap.language
path:
  v: StructureMap.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
    l: 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
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot3
    l: http://hl7.org/fhir/ValueSet/all-languages
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages|6.0.0-ballot3
      l: http://hl7.org/fhir/ValueSet/languages

id:
  v: StructureMap.text
path:
  v: StructureMap.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
    l: 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
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: StructureMap.contained
path:
  v: StructureMap.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. Contained resources may be a resource type defined in the FHIR specification, or an [additional resource](http://build.fhir.org/resource.html#additional).
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
    l: 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: StructureMap.extension
path:
  v: StructureMap.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: StructureMap.modifierExtension
path:
  v: StructureMap.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.url
path:
  v: StructureMap.url
short:
  v: Canonical identifier for this structure map, represented as a URI (globally unique)
definition:
  v: An absolute URI that is used to identify this structure map when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this structure map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the structure map is stored on different servers.
comment:
  v: Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version. The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](http://build.fhir.org/resource.html#versions). In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](http://build.fhir.org/resource.html#meta) element to indicate where the current master source of the resource can be found.
requirements:
  v: Allows the structure map to be referenced by a single globally unique identifier.
alias:
  v: url
alias:
  v: authoritative-url
alias:
  v: destination
alias:
  v: identity
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: cnl-1
  severity:
    v: warning
  human:
    v: URL should not contain | or # - these characters make processing canonical references problematic
  expression:
    v: exists() implies matches('^[^|# ]+$')
  source:
    v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
    l: CanonicalResource
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier

id:
  v: StructureMap.identifier
path:
  v: StructureMap.identifier
short:
  v: Additional identifier for the structure map
definition:
  v: A formal identifier that is used to identify this structure map when it is represented in other formats, or referenced in a specification, model, design or an instance.
requirements:
  v: Allows externally provided and/or usable business identifiers to be easily associated with the module.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: StructureMap.version
path:
  v: StructureMap.version
short:
  v: Business version of the structure map
definition:
  v: The identifier that is used to identify this version of the structure map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the structure map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
comment:
  v: There may be different structure map instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the structure map with the format [url]|[version]. The version SHOULD NOT contain a '#' - see [Business Version](http://build.fhir.org/resource.html#bv-format).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.version

id:
  v: StructureMap.versionAlgorithm[x]
path:
  v: StructureMap.versionAlgorithm[x]
short:
  v: How to compare versions
definition:
  v: Indicates the mechanism used to compare versions to determine which is more current.
comment:
  v: If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.versionAlgorithm[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
type:
  code:
    v: Coding
    l: Coding
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/version-algorithm
    l: version-algorithm

id:
  v: StructureMap.name
path:
  v: StructureMap.name
short:
  v: Name for this structure map (computer friendly)
definition:
  v: A natural language name identifying the structure map. This name should be usable as an identifier for the module by machine processing applications such as code generation.
comment:
  v: The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Support human navigation and code generation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: cnl-0
is summary:
  v: true

id:
  v: StructureMap.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.title
short:
  v: Name for this structure map (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the structure map.
comment:
  v: This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.status
path:
  v: StructureMap.status
short:
  v: draft | active | retired | unknown
definition:
  v: The status of this structure map. Enables tracking the life-cycle of the content.
comment:
  v: Allows filtering of structure maps that are appropriate for use versus not. See guidance around (not) making local changes to elements [here](http://hl7.org/fhir/R5/canonicalresource.html#localization).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: required
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    l: publication-status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: StructureMap.experimental
path:
  v: StructureMap.experimental
short:
  v: For testing only - never for real usage
definition:
  v: A Boolean value to indicate that this structure map is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage.
comment:
  v: Allows filtering of structure maps that are appropriate for use versus not. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc. If experimental is 'true' for any version of a resource, it should be true for all versions of the resource. (If experimental changes, then it is being misused or a resource that was never intended for real-world use has unexpectedly changed its purpose.). Experimental resources are not expected to be stable and may well have breaking changes without a corresponding change to the 'version' element.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level structure map.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.experimental
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: If absent, this resource is treated as though it is not experimental.
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: StructureMap.date
path:
  v: StructureMap.date
short:
  v: Date last changed
definition:
  v: The date (and optionally time) when the structure map was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the structure map changes.
comment:
  v: The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource. See guidance around (not) making local changes to elements [here](http://hl7.org/fhir/R5/canonicalresource.html#localization).
alias:
  v: Revision Date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: StructureMap.publisher
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.publisher
short:
  v: Name of the publisher/steward (organization or individual)
definition:
  v: The name of the organization or individual responsible for the release and ongoing maintenance of the structure map.
comment:
  v: Usually an organization but may be an individual. The publisher (or steward) of the structure map is the organization or individual primarily responsible for the maintenance and upkeep of the structure map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure map. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the structure map. May also allow for contact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.publisher
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness

id:
  v: StructureMap.contact
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/committee-notes
    l: committee-notes
  value: String
    v: 400;0.
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.contact
short:
  v: Contact details for the publisher
definition:
  v: Contact details to assist a user in finding and communicating with the publisher.
comment:
  v: May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements [here](http://hl7.org/fhir/R5/canonicalresource.html#localization).
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
is summary:
  v: true

id:
  v: StructureMap.description
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.description
short:
  v: Natural language description of the structure map
definition:
  v: A free text natural language description of the structure map from a consumer's perspective.
comment:
  v: This description can be used to capture details such as comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure map as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure map is presumed to be the predominant language in the place the structure map was created).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown

id:
  v: StructureMap.useContext
path:
  v: StructureMap.useContext
short:
  v: The context that the content is intended to support
definition:
  v: The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate structure map instances.
comment:
  v: When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.useContext
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: UsageContext
    l: UsageContext
is summary:
  v: true

id:
  v: StructureMap.jurisdiction
path:
  v: StructureMap.jurisdiction
short:
  v: Jurisdiction of the authority that maintains the structure map (if applicable)
definition:
  v: A legal or geographic region in which the authority that maintains the resource is operating. In general, the jurisdiction is also found in the useContext. The useContext may reference additional jurisdictions because the defining jurisdiction does not necessarily limit the jurisdictions of use.
comment:
  v: It may be possible for the structure map to be used in jurisdictions other than those for which it was originally designed or intended.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Jurisdiction
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use.
  value set:
    v: http://terminology.hl7.org/ValueSet/jurisdiction
    l: jurisdiction

id:
  v: StructureMap.purpose
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.purpose
short:
  v: Why this structure map is defined
definition:
  v: Explanation of why this structure map is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the structure map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this structure map.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.purpose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: StructureMap.copyright
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.copyright
short:
  v: Notice about intellectual property ownership, can include restrictions on use
definition:
  v: A copyright statement relating to the structure map and/or its contents. Copyright statements are notices of intellectual property ownership and can include restrictions on the use and publishing of the structure map.
comment:
  v: ...
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the structure map and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.copyright
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: StructureMap.copyrightLabel
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.copyrightLabel
short:
  v: Copyright holder and year(s)
definition:
  v: A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are restricted. (e.g. 'All rights reserved', 'Some rights reserved').
comment:
  v: The copyright symbol and the '(c)' textual representation SHOULD NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.
requirements:
  v: Defines the content expected to be rendered in all representations of the artifact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.copyrightLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.structure
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: right
path:
  v: StructureMap.structure
short:
  v: Structure Definition used by this map
definition:
  v: A structure definition used by this map. The structure definition may describe instances that are converted, or the instances that are produced.
comment:
  v: It is not necessary for a structure map to identify any dependent structures, though not listing them may restrict its usefulness.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.structure
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.structure.id
path:
  v: StructureMap.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.structure.extension
path:
  v: StructureMap.structure.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.structure.modifierExtension
path:
  v: StructureMap.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.structure.url
path:
  v: StructureMap.structure.url
short:
  v: Canonical reference to structure definition
definition:
  v: The canonical reference to the structure.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.structure.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    l: StructureDefinition
is summary:
  v: true

id:
  v: StructureMap.structure.mode
path:
  v: StructureMap.structure.mode
short:
  v: source | queried | target | produced
definition:
  v: How the referenced structure is used in this mapping.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.structure.mode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapModelMode
  strength:
    v: required
  description:
    v: How the referenced structure is used in this mapping.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-model-mode
    l: map-model-mode

id:
  v: StructureMap.structure.alias
path:
  v: StructureMap.structure.alias
short:
  v: Name for type in this map
definition:
  v: The name used for this type in the map.
comment:
  v: This is needed if both types have the same name (e.g. version conversion).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.structure.alias
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.structure.documentation
path:
  v: StructureMap.structure.documentation
short:
  v: Documentation on use of structure
definition:
  v: Documentation that describes how the structure is used in the mapping.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.structure.documentation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.import
path:
  v: StructureMap.import
short:
  v: Other maps used by this map (canonical URLs)
definition:
  v: Other maps used by this map (canonical URLs).
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.import
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.const
path:
  v: StructureMap.const
short:
  v: Definition of the constant value used in the map rules
definition:
  v: Definition of a constant value used in the map rules.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.const
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.const.id
path:
  v: StructureMap.const.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.const.extension
path:
  v: StructureMap.const.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.const.modifierExtension
path:
  v: StructureMap.const.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.const.name
path:
  v: StructureMap.const.name
short:
  v: Constant name
definition:
  v: The name used to refer to the constant.
comment:
  v: This includes as a variable in FHIRPath expressions e.g. `%varname`
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.const.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.const.value
path:
  v: StructureMap.const.value
short:
  v: FHIRPath expression - value of the constant
definition:
  v: A FHIRPath expression that is the value of this variable.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.const.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group
short:
  v: Named sections for reader convenience
definition:
  v: Organizes the mapping into managable chunks for human review/ease of maintenance.
min:
  v: 1
max:
  v: *
base:
  path:
    v: StructureMap.group
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.id
path:
  v: StructureMap.group.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.extension
path:
  v: StructureMap.group.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.modifierExtension
path:
  v: StructureMap.group.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.name
path:
  v: StructureMap.group.name
short:
  v: Human-readable label
definition:
  v: A unique name for the group for the convenience of human readers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: sm-1
  severity:
    v: error
  human:
    v: Group name should be usable as an identifier
  expression:
    v: matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
is summary:
  v: true

id:
  v: StructureMap.group.extends
path:
  v: StructureMap.group.extends
short:
  v: Another group that this group adds rules to
definition:
  v: Another group that this group adds rules to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.extends
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.typeMode
path:
  v: StructureMap.group.typeMode
short:
  v: types | type-and-types
definition:
  v: If this is the default rule set to apply for the source type or this combination of types.
comment:
  v: Not applicable if the underlying model is untyped. There can only be one default mapping for any particular type combination.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.typeMode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapGroupTypeMode
  strength:
    v: required
  description:
    v: If this is the default rule set to apply for the source type, or this combination of types.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-group-type-mode
    l: map-group-type-mode

id:
  v: StructureMap.group.documentation
path:
  v: StructureMap.group.documentation
short:
  v: Additional description/explanation for group
definition:
  v: Additional supporting documentation that explains the purpose of the group and the types of mappings within it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.documentation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.input
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.group.input
short:
  v: Named instance provided when invoking the map
definition:
  v: A name assigned to an instance of data. The instance must be provided when the mapping is invoked.
comment:
  v: If no inputs are named, then the entry mappings are type based.
min:
  v: 1
max:
  v: *
base:
  path:
    v: StructureMap.group.input
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.input.id
path:
  v: StructureMap.group.input.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.input.extension
path:
  v: StructureMap.group.input.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.input.modifierExtension
path:
  v: StructureMap.group.input.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.input.name
path:
  v: StructureMap.group.input.name
short:
  v: Name for this instance of data
definition:
  v: Name for this instance of data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.input.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.input.type
path:
  v: StructureMap.group.input.type
short:
  v: Type for this instance of data
definition:
  v: Type for this instance of data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.input.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.input.mode
path:
  v: StructureMap.group.input.mode
short:
  v: source | target
definition:
  v: Mode for this instance of data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.input.mode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapInputMode
  strength:
    v: required
  description:
    v: Mode for this instance of data.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-input-mode
    l: map-input-mode

id:
  v: StructureMap.group.input.documentation
path:
  v: StructureMap.group.input.documentation
short:
  v: Documentation for this instance of data
definition:
  v: Documentation for this instance of data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.input.documentation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.group.rule
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group.rule
short:
  v: Transform Rule from source to target
definition:
  v: Transform Rule from source to target.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.rule.id
path:
  v: StructureMap.group.rule.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.extension
path:
  v: StructureMap.group.rule.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.modifierExtension
path:
  v: StructureMap.group.rule.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.rule.name
path:
  v: StructureMap.group.rule.name
short:
  v: Name of the rule for internal references
definition:
  v: Name of the rule for internal references.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.group.rule.source
short:
  v: Source inputs to the mapping
definition:
  v: Source inputs to the mapping.
min:
  v: 1
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.source
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: smp-2
  severity:
    v: error
  human:
    v: Min <= Max
  expression:
    v: min.empty() or max.empty() or (max = '*') or iif(max != '*', min <= max.toInteger())
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.id
path:
  v: StructureMap.group.rule.source.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.source.extension
path:
  v: StructureMap.group.rule.source.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.source.modifierExtension
path:
  v: StructureMap.group.rule.source.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.rule.source.context
path:
  v: StructureMap.group.rule.source.context
short:
  v: Type or variable this rule applies to
definition:
  v: Type or variable this rule applies to.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.context
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.min
path:
  v: StructureMap.group.rule.source.min
short:
  v: Specified minimum cardinality
definition:
  v: Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.min
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: unsignedInt
    l: unsignedInt
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.max
path:
  v: StructureMap.group.rule.source.max
short:
  v: Specified maximum cardinality (number or *)
definition:
  v: Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.max
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: smp-3
  severity:
    v: error
  human:
    v: Max SHALL be a number or "*"
  expression:
    v: empty() or ($this = '*') or (toInteger() >= 0)
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.type
path:
  v: StructureMap.group.rule.source.type
short:
  v: Rule only applies if source has this type
definition:
  v: Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.defaultValue
path:
  v: StructureMap.group.rule.source.defaultValue
short:
  v: Default value FHIRPath expression
definition:
  v: A FHIRPath expression that returns value(s) to use if the source object has no value.
comment:
  v: The expression is only evaluated once if the source object has no value, otherwise is not evaluated at all.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.defaultValue
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.element
path:
  v: StructureMap.group.rule.source.element
short:
  v: Optional field for this source
definition:
  v: Optional field for this source.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.source.element
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string
order meaning:
  v: Element names walk down the heirarchy, stepping into child elements
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.listMode
path:
  v: StructureMap.group.rule.source.listMode
short:
  v: first | not_first | last | not_last | only_one
definition:
  v: How to handle the list mode for this element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.listMode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapSourceListMode
  strength:
    v: required
  description:
    v: If field is a list, how to manage the source.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-source-list-mode
    l: map-source-list-mode

id:
  v: StructureMap.group.rule.source.variable
path:
  v: StructureMap.group.rule.source.variable
short:
  v: Named context for field, if a field is specified
definition:
  v: Named context for field, if a field is specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.variable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.condition
path:
  v: StructureMap.group.rule.source.condition
short:
  v: FHIRPath expression - must be true or the rule does not apply
definition:
  v: FHIRPath expression - must be true or the rule does not apply.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.condition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.check
path:
  v: StructureMap.group.rule.source.check
short:
  v: FHIRPath expression - must be true or the mapping engine throws an error instead of completing
definition:
  v: FHIRPath expression - must be true or the mapping engine throws an error instead of completing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.check
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.logMessage
path:
  v: StructureMap.group.rule.source.logMessage
short:
  v: Message to put in log if source exists (FHIRPath)
definition:
  v: A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.source.logMessage
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.target
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: right
path:
  v: StructureMap.group.rule.target
short:
  v: Content to create because of this mapping rule
definition:
  v: Content to create because of this mapping rule.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.target
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: smp-1
  severity:
    v: error
  human:
    v: Can only have an element if you have a context
  expression:
    v: element.exists() implies context.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.id
path:
  v: StructureMap.group.rule.target.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.target.extension
path:
  v: StructureMap.group.rule.target.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.target.modifierExtension
path:
  v: StructureMap.group.rule.target.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.rule.target.context
path:
  v: StructureMap.group.rule.target.context
short:
  v: Variable this rule applies to
definition:
  v: Variable this rule applies to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.target.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: smp-1
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.element
path:
  v: StructureMap.group.rule.target.element
short:
  v: Field to create in the context
definition:
  v: Field to create in the context.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.target.element
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string
order meaning:
  v: Element names walk down the heirarchy, stepping into child elements
condition:
  v: smp-1
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.variable
path:
  v: StructureMap.group.rule.target.variable
short:
  v: Named context for field, if desired, and a field is specified
definition:
  v: Named context for field, if desired, and a field is specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.target.variable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.listMode
path:
  v: StructureMap.group.rule.target.listMode
short:
  v: first | share | last | single
definition:
  v: If field is a list, how to manage the list.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.target.listMode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapTargetListMode
  strength:
    v: required
  description:
    v: If field is a list, how to manage the production.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-target-list-mode
    l: map-target-list-mode

id:
  v: StructureMap.group.rule.target.listRuleId
path:
  v: StructureMap.group.rule.target.listRuleId
short:
  v: Internal rule reference for shared list items
definition:
  v: Internal rule reference for shared list items.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.target.listRuleId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.transform
path:
  v: StructureMap.group.rule.target.transform
short:
  v: create | copy +
definition:
  v: How the data is copied / created.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.target.transform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapTransform
  strength:
    v: required
  description:
    v: How data is copied/created.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-transform
    l: map-transform

id:
  v: StructureMap.group.rule.target.parameter
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: up
path:
  v: StructureMap.group.rule.target.parameter
short:
  v: Parameters to the transform
definition:
  v: Parameters to the transform.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.target.parameter
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.parameter.id
path:
  v: StructureMap.group.rule.target.parameter.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.target.parameter.extension
path:
  v: StructureMap.group.rule.target.parameter.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.target.parameter.modifierExtension
path:
  v: StructureMap.group.rule.target.parameter.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.rule.target.parameter.value[x]
path:
  v: StructureMap.group.rule.target.parameter.value[x]
short:
  v: Parameter value - variable or literal
definition:
  v: Parameter value - variable or literal.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.target.parameter.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id
type:
  code:
    v: string
    l: string
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: date
    l: date
type:
  code:
    v: time
    l: time
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true

id:
  v: StructureMap.group.rule.rule
path:
  v: StructureMap.group.rule.rule
short:
  v: Rules contained in this rule
definition:
  v: Rules contained in this rule.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.rule
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap#StructureMap.group.rule
  l: StructureMap.group.rule
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group.rule.dependent
short:
  v: Which other rules to apply in the context of this rule
definition:
  v: Which other rules to apply in the context of this rule.
min:
  v: 0
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.dependent
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children or both
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent.id
path:
  v: StructureMap.group.rule.dependent.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.dependent.extension
path:
  v: StructureMap.group.rule.dependent.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: StructureMap.group.rule.dependent.modifierExtension
path:
  v: StructureMap.group.rule.dependent.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://build.fhir.org/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
    l: 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
    l: Element
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: StructureMap.group.rule.dependent.name
path:
  v: StructureMap.group.rule.dependent.name
short:
  v: Name of a rule or group to apply
definition:
  v: Name of a rule or group to apply.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.dependent.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent.parameter
path:
  v: StructureMap.group.rule.dependent.parameter
short:
  v: Parameter to pass to the rule or group
definition:
  v: Parameter to pass to the rule or group.
min:
  v: 1
max:
  v: *
base:
  path:
    v: StructureMap.group.rule.dependent.parameter
  min:
    v: 1
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap#StructureMap.group.rule.target.parameter
  l: StructureMap.group.rule.target.parameter
is summary:
  v: true

id:
  v: StructureMap.group.rule.documentation
path:
  v: StructureMap.group.rule.documentation
short:
  v: Documentation for this instance of data
definition:
  v: Documentation for this instance of data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: StructureMap.group.rule.documentation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

element:
  id:
    v: StructureMap
  extension:
    url:
      v: http://hl7.org/fhir/build/StructureDefinition/committee-notes
      l: committee-notes
    value: String
      v: 0;0.
  path:
    v: StructureMap
  short:
    v: A Map of relationships between 2 structures that can be used to transform data
  definition:
    v: A Map of relationships between 2 structures that can be used to transform data.
  alias:
    v: Template
  alias:
    v: Profile
  min:
    v: 0
  max:
    v: *
  constraint:
    key:
      v: cnl-0
    severity:
      v: warning
    human:
      v: Name should be usable as an identifier for the module by machine processing applications such as code generation
    expression:
      v: name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
    source:
      v: http://hl7.org/fhir/StructureDefinition/StructureMap
      l: StructureMap
  mapping:
    identity:
      v: rim
    map:
      v: n/a
  mapping:
    identity:
      v: w5
    map:
      v: conformance.content
element:
  id:
    v: StructureMap.url
  path:
    v: StructureMap.url
  short:
    v: Canonical identifier for this structure map, represented as a URI (globally unique)
  definition:
    v: An absolute URI that is used to identify this structure map when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this structure map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the structure map is stored on different servers.
  comment:
    v: Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version. The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.
  requirements:
    v: Allows the structure map to be referenced by a single globally unique identifier.
  alias:
    v: url
  alias:
    v: authoritative-url
  alias:
    v: destination
  alias:
    v: identity
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: uri
      l: uri
  constraint:
    key:
      v: cnl-1
    severity:
      v: warning
    human:
      v: URL should not contain | or # - these characters make processing canonical references problematic
    expression:
      v: exists() implies matches('^[^|# ]+$')
    source:
      v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
      l: CanonicalResource
  is summary:
    v: true
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.identifier
element:
  id:
    v: StructureMap.identifier
  path:
    v: StructureMap.identifier
  short:
    v: Additional identifier for the structure map
  definition:
    v: A formal identifier that is used to identify this structure map when it is represented in other formats, or referenced in a specification, model, design or an instance.
  requirements:
    v: Allows externally provided and/or usable business identifiers to be easily associated with the module.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
  is summary:
    v: true
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.identifier
  mapping:
    identity:
      v: objimpl
    map:
      v: no-gen-base
element:
  id:
    v: StructureMap.version
  path:
    v: StructureMap.version
  short:
    v: Business version of the structure map
  definition:
    v: The identifier that is used to identify this version of the structure map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the structure map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
  comment:
    v: There may be different structure map instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the structure map with the format [url]|[version]. The version SHOULD NOT contain a '#' - see [Business Version](resource.html#bv-format).
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  is summary:
    v: true
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.version
element:
  id:
    v: StructureMap.versionAlgorithm[x]
  path:
    v: StructureMap.versionAlgorithm[x]
  short:
    v: How to compare versions
  definition:
    v: Indicates the mechanism used to compare versions to determine which is more current.
  comment:
    v: If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  type:
    code:
      v: Coding
      l: Coding
  is summary:
    v: true
  binding:
    strength:
      v: extensible
    value set:
      v: http://hl7.org/fhir/ValueSet/version-algorithm
      l: version-algorithm
element:
  id:
    v: StructureMap.name
  path:
    v: StructureMap.name
  short:
    v: Name for this structure map (computer friendly)
  definition:
    v: A natural language name identifying the structure map. This name should be usable as an identifier for the module by machine processing applications such as code generation.
  comment:
    v: The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
  requirements:
    v: Support human navigation and code generation.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string

v: cnl-0

v: true

id:
  v: StructureMap.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.title
short:
  v: Name for this structure map (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the structure map.
comment:
  v: This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.status
path:
  v: StructureMap.status
short:
  v: draft | active | retired | unknown
definition:
  v: The status of this structure map. Enables tracking the life-cycle of the content.
comment:
  v: Allows filtering of structure maps that are appropriate for use versus not. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: required
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    l: publication-status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: StructureMap.experimental
path:
  v: StructureMap.experimental
short:
  v: For testing only - never for real usage
definition:
  v: A Boolean value to indicate that this structure map is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage.
comment:
  v: Allows filtering of structure maps that are appropriate for use versus not. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc. If experimental is 'true' for any version of a resource, it should be true for all versions of the resource. (If experimental changes, then it is being misused or a resource that was never intended for real-world use has unexpectedly changed its purpose.). Experimental resources are not expected to be stable and may well have breaking changes without a corresponding change to the 'version' element.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level structure map.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: If absent, this resource is treated as though it is not experimental.
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: StructureMap.date
path:
  v: StructureMap.date
short:
  v: Date last changed
definition:
  v: The date (and optionally time) when the structure map was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the structure map changes.
comment:
  v: The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
alias:
  v: Revision Date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: StructureMap.publisher
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.publisher
short:
  v: Name of the publisher/steward (organization or individual)
definition:
  v: The name of the organization or individual responsible for the release and ongoing maintenance of the structure map.
comment:
  v: Usually an organization but may be an individual. The publisher (or steward) of the structure map is the organization or individual primarily responsible for the maintenance and upkeep of the structure map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure map. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the structure map. May also allow for contact.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness

id:
  v: StructureMap.contact
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/committee-notes
    l: committee-notes
  value: String
    v: 400;0.
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.contact
short:
  v: Contact details for the publisher
definition:
  v: Contact details to assist a user in finding and communicating with the publisher.
comment:
  v: May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
is summary:
  v: true

id:
  v: StructureMap.description
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.description
short:
  v: Natural language description of the structure map
definition:
  v: A free text natural language description of the structure map from a consumer's perspective.
comment:
  v: This description can be used to capture details such as comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure map as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure map is presumed to be the predominant language in the place the structure map was created).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown

id:
  v: StructureMap.useContext
path:
  v: StructureMap.useContext
short:
  v: The context that the content is intended to support
definition:
  v: The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate structure map instances.
comment:
  v: When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
type:
  code:
    v: UsageContext
    l: UsageContext
is summary:
  v: true

id:
  v: StructureMap.jurisdiction
path:
  v: StructureMap.jurisdiction
short:
  v: Jurisdiction of the authority that maintains the structure map (if applicable)
definition:
  v: A legal or geographic region in which the authority that maintains the resource is operating. In general, the jurisdiction is also found in the useContext. The useContext may reference additional jurisdictions because the defining jurisdiction does not necessarily limit the jurisdictions of use.
comment:
  v: It may be possible for the structure map to be used in jurisdictions other than those for which it was originally designed or intended.
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Jurisdiction
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use.
  value set:
    v: http://terminology.hl7.org/ValueSet/jurisdiction
    l: jurisdiction

id:
  v: StructureMap.purpose
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.purpose
short:
  v: Why this structure map is defined
definition:
  v: Explanation of why this structure map is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the structure map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this structure map.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: StructureMap.copyright
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.copyright
short:
  v: Notice about intellectual property ownership, can include restrictions on use
definition:
  v: A copyright statement relating to the structure map and/or its contents. Copyright statements are notices of intellectual property ownership and can include restrictions on the use and publishing of the structure map.
comment:
  v: ...
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the structure map and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: StructureMap.copyrightLabel
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: StructureMap.copyrightLabel
short:
  v: Copyright holder and year(s)
definition:
  v: A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are restricted. (e.g. 'All rights reserved', 'Some rights reserved').
comment:
  v: The copyright symbol and the '(c)' textual representation SHOULD NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.
requirements:
  v: Defines the content expected to be rendered in all representations of the artifact.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.structure
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: right
path:
  v: StructureMap.structure
short:
  v: Structure Definition used by this map
definition:
  v: A structure definition used by this map. The structure definition may describe instances that are converted, or the instances that are produced.
comment:
  v: It is not necessary for a structure map to identify any dependent structures, though not listing them may restrict its usefulness.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.structure.url
path:
  v: StructureMap.structure.url
short:
  v: Canonical reference to structure definition
definition:
  v: The canonical reference to the structure.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    l: StructureDefinition
is summary:
  v: true

id:
  v: StructureMap.structure.mode
path:
  v: StructureMap.structure.mode
short:
  v: source | queried | target | produced
definition:
  v: How the referenced structure is used in this mapping.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapModelMode
  strength:
    v: required
  description:
    v: How the referenced structure is used in this mapping.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-model-mode
    l: map-model-mode

id:
  v: StructureMap.structure.alias
path:
  v: StructureMap.structure.alias
short:
  v: Name for type in this map
definition:
  v: The name used for this type in the map.
comment:
  v: This is needed if both types have the same name (e.g. version conversion).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.structure.documentation
path:
  v: StructureMap.structure.documentation
short:
  v: Documentation on use of structure
definition:
  v: Documentation that describes how the structure is used in the mapping.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.import
path:
  v: StructureMap.import
short:
  v: Other maps used by this map (canonical URLs)
definition:
  v: Other maps used by this map (canonical URLs).
min:
  v: 0
max:
  v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.const
path:
  v: StructureMap.const
short:
  v: Definition of the constant value used in the map rules
definition:
  v: Definition of a constant value used in the map rules.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.const.name
path:
  v: StructureMap.const.name
short:
  v: Constant name
definition:
  v: The name used to refer to the constant.
comment:
  v: This includes as a variable in FHIRPath expressions e.g. `%varname`
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.const.value
path:
  v: StructureMap.const.value
short:
  v: FHIRPath expression - value of the constant
definition:
  v: A FHIRPath expression that is the value of this variable.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group
short:
  v: Named sections for reader convenience
definition:
  v: Organizes the mapping into managable chunks for human review/ease of maintenance.
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.group.name
path:
  v: StructureMap.group.name
short:
  v: Human-readable label
definition:
  v: A unique name for the group for the convenience of human readers.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: sm-1
  severity:
    v: error
  human:
    v: Group name should be usable as an identifier
  expression:
    v: matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
is summary:
  v: true

id:
  v: StructureMap.group.extends
path:
  v: StructureMap.group.extends
short:
  v: Another group that this group adds rules to
definition:
  v: Another group that this group adds rules to.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.typeMode
path:
  v: StructureMap.group.typeMode
short:
  v: types | type-and-types
definition:
  v: If this is the default rule set to apply for the source type or this combination of types.
comment:
  v: Not applicable if the underlying model is untyped. There can only be one default mapping for any particular type combination.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapGroupTypeMode
  strength:
    v: required
  description:
    v: If this is the default rule set to apply for the source type, or this combination of types.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-group-type-mode
    l: map-group-type-mode

id:
  v: StructureMap.group.documentation
path:
  v: StructureMap.group.documentation
short:
  v: Additional description/explanation for group
definition:
  v: Additional supporting documentation that explains the purpose of the group and the types of mappings within it.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.input
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.group.input
short:
  v: Named instance provided when invoking the map
definition:
  v: A name assigned to an instance of data. The instance must be provided when the mapping is invoked.
comment:
  v: If no inputs are named, then the entry mappings are type based.
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.group.input.name
path:
  v: StructureMap.group.input.name
short:
  v: Name for this instance of data
definition:
  v: Name for this instance of data.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.input.type
path:
  v: StructureMap.group.input.type
short:
  v: Type for this instance of data
definition:
  v: Type for this instance of data.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.input.mode
path:
  v: StructureMap.group.input.mode
short:
  v: source | target
definition:
  v: Mode for this instance of data.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapInputMode
  strength:
    v: required
  description:
    v: Mode for this instance of data.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-input-mode
    l: map-input-mode

id:
  v: StructureMap.group.input.documentation
path:
  v: StructureMap.group.input.documentation
short:
  v: Documentation for this instance of data
definition:
  v: Documentation for this instance of data.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: StructureMap.group.rule
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group.rule
short:
  v: Transform Rule from source to target
definition:
  v: Transform Rule from source to target.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.group.rule.name
path:
  v: StructureMap.group.rule.name
short:
  v: Name of the rule for internal references
definition:
  v: Name of the rule for internal references.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: left
path:
  v: StructureMap.group.rule.source
short:
  v: Source inputs to the mapping
definition:
  v: Source inputs to the mapping.
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: smp-2
  severity:
    v: error
  human:
    v: Min <= Max
  expression:
    v: min.empty() or max.empty() or (max = '*') or iif(max != '*', min <= max.toInteger())
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.context
path:
  v: StructureMap.group.rule.source.context
short:
  v: Type or variable this rule applies to
definition:
  v: Type or variable this rule applies to.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.min
path:
  v: StructureMap.group.rule.source.min
short:
  v: Specified minimum cardinality
definition:
  v: Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: unsignedInt
    l: unsignedInt
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.max
path:
  v: StructureMap.group.rule.source.max
short:
  v: Specified maximum cardinality (number or *)
definition:
  v: Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: smp-3
  severity:
    v: error
  human:
    v: Max SHALL be a number or "*"
  expression:
    v: empty() or ($this = '*') or (toInteger() >= 0)
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.type
path:
  v: StructureMap.group.rule.source.type
short:
  v: Rule only applies if source has this type
definition:
  v: Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.defaultValue
path:
  v: StructureMap.group.rule.source.defaultValue
short:
  v: Default value FHIRPath expression
definition:
  v: A FHIRPath expression that returns value(s) to use if the source object has no value.
comment:
  v: The expression is only evaluated once if the source object has no value, otherwise is not evaluated at all.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.element
path:
  v: StructureMap.group.rule.source.element
short:
  v: Optional field for this source
definition:
  v: Optional field for this source.
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string
order meaning:
  v: Element names walk down the heirarchy, stepping into child elements
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.listMode
path:
  v: StructureMap.group.rule.source.listMode
short:
  v: first | not_first | last | not_last | only_one
definition:
  v: How to handle the list mode for this element.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapSourceListMode
  strength:
    v: required
  description:
    v: If field is a list, how to manage the source.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-source-list-mode
    l: map-source-list-mode

id:
  v: StructureMap.group.rule.source.variable
path:
  v: StructureMap.group.rule.source.variable
short:
  v: Named context for field, if a field is specified
definition:
  v: Named context for field, if a field is specified.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.condition
path:
  v: StructureMap.group.rule.source.condition
short:
  v: FHIRPath expression - must be true or the rule does not apply
definition:
  v: FHIRPath expression - must be true or the rule does not apply.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.check
path:
  v: StructureMap.group.rule.source.check
short:
  v: FHIRPath expression - must be true or the mapping engine throws an error instead of completing
definition:
  v: FHIRPath expression - must be true or the mapping engine throws an error instead of completing.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.source.logMessage
path:
  v: StructureMap.group.rule.source.logMessage
short:
  v: Message to put in log if source exists (FHIRPath)
definition:
  v: A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: StructureMap.group.rule.target
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: right
path:
  v: StructureMap.group.rule.target
short:
  v: Content to create because of this mapping rule
definition:
  v: Content to create because of this mapping rule.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: smp-1
  severity:
    v: error
  human:
    v: Can only have an element if you have a context
  expression:
    v: element.exists() implies context.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap
    l: StructureMap
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.context
path:
  v: StructureMap.group.rule.target.context
short:
  v: Variable this rule applies to
definition:
  v: Variable this rule applies to.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
condition:
  v: smp-1
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.element
path:
  v: StructureMap.group.rule.target.element
short:
  v: Field to create in the context
definition:
  v: Field to create in the context.
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string
order meaning:
  v: Element names walk down the heirarchy, stepping into child elements
condition:
  v: smp-1
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.variable
path:
  v: StructureMap.group.rule.target.variable
short:
  v: Named context for field, if desired, and a field is specified
definition:
  v: Named context for field, if desired, and a field is specified.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.listMode
path:
  v: StructureMap.group.rule.target.listMode
short:
  v: first | share | last | single
definition:
  v: If field is a list, how to manage the list.
min:
  v: 0
max:
  v: *
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapTargetListMode
  strength:
    v: required
  description:
    v: If field is a list, how to manage the production.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-target-list-mode
    l: map-target-list-mode

id:
  v: StructureMap.group.rule.target.listRuleId
path:
  v: StructureMap.group.rule.target.listRuleId
short:
  v: Internal rule reference for shared list items
definition:
  v: Internal rule reference for shared list items.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.transform
path:
  v: StructureMap.group.rule.target.transform
short:
  v: create | copy +
definition:
  v: How the data is copied / created.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: StructureMapTransform
  strength:
    v: required
  description:
    v: How data is copied/created.
  value set:
    v: http://hl7.org/fhir/ValueSet/map-transform
    l: map-transform

id:
  v: StructureMap.group.rule.target.parameter
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: up
path:
  v: StructureMap.group.rule.target.parameter
short:
  v: Parameters to the transform
definition:
  v: Parameters to the transform.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.group.rule.target.parameter.value[x]
path:
  v: StructureMap.group.rule.target.parameter.value[x]
short:
  v: Parameter value - variable or literal
definition:
  v: Parameter value - variable or literal.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: id
    l: id
type:
  code:
    v: string
    l: string
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: date
    l: date
type:
  code:
    v: time
    l: time
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true

id:
  v: StructureMap.group.rule.rule
path:
  v: StructureMap.group.rule.rule
short:
  v: Rules contained in this rule
definition:
  v: Rules contained in this rule.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap#StructureMap.group.rule
  l: StructureMap.group.rule
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/uml-dir
    l: uml-dir
  value: Code
    v: down
path:
  v: StructureMap.group.rule.dependent
short:
  v: Which other rules to apply in the context of this rule
definition:
  v: Which other rules to apply in the context of this rule.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent.name
path:
  v: StructureMap.group.rule.dependent.name
short:
  v: Name of a rule or group to apply
definition:
  v: Name of a rule or group to apply.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: StructureMap.group.rule.dependent.parameter
path:
  v: StructureMap.group.rule.dependent.parameter
short:
  v: Parameter to pass to the rule or group
definition:
  v: Parameter to pass to the rule or group.
min:
  v: 1
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/StructureMap#StructureMap.group.rule.target.parameter
  l: StructureMap.group.rule.target.parameter
is summary:
  v: true

id:
  v: StructureMap.group.rule.documentation
path:
  v: StructureMap.group.rule.documentation
short:
  v: Documentation for this instance of data
definition:
  v: Documentation for this instance of data.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string