{
  "resourceType" : "Bundle",
  "id" : "profiles-others",
  "meta" : {
    "lastUpdated" : "2019-11-01T09:29:23.356+11:00"
  },
  "type" : "collection",
  "entry" : [{
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareablemeasure",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareablemeasure",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cqi"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareablemeasure",
      "version" : "4.0.1",
      "name" : "Shareable Measure",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the measure metadata required by HL7 and other organizations that share and publish measures",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Measure",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Measure",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Measure",
          "path" : "Measure",
          "short" : "A quality measure definition",
          "definition" : "The Measure resource provides the definition of a quality measure.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "mea-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/Measure"
          },
          {
            "key" : "mea-1",
            "severity" : "error",
            "human" : "Stratifier SHALL be either a single criteria or a set of criteria components",
            "expression" : "group.stratifier.all((code | description | criteria).exists() xor component.exists())",
            "xpath" : "exists(f:group/stratifier/code) or exists(f:group/stratifier/component)",
            "source" : "http://hl7.org/fhir/StructureDefinition/Measure"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "Measure.id",
          "path" : "Measure.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.meta",
          "path" : "Measure.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.implicitRules",
          "path" : "Measure.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Measure.language",
          "path" : "Measure.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Measure.text",
          "path" : "Measure.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Measure.contained",
          "path" : "Measure.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.extension",
          "path" : "Measure.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.modifierExtension",
          "path" : "Measure.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.url",
          "path" : "Measure.url",
          "short" : "Canonical identifier for this measure, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this measure 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 at which an authoritative instance of this measure is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the measure is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the measure to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "Measure.identifier",
          "path" : "Measure.identifier",
          "short" : "Additional identifier for the measure",
          "definition" : "A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this measure outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.version",
          "path" : "Measure.version",
          "short" : "Business version of the measure",
          "definition" : "The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different measure 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 measure with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "Measure.name",
          "path" : "Measure.name",
          "short" : "Name for this measure (computer friendly)",
          "definition" : "A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.title",
          "path" : "Measure.title",
          "short" : "Name for this measure (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the measure.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "Measure.subtitle",
          "path" : "Measure.subtitle",
          "short" : "Subordinate title of the measure",
          "definition" : "An explanatory or alternate title for the measure giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.status",
          "path" : "Measure.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this measure. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of measures that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "Measure.experimental",
          "path" : "Measure.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of measures that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level measure.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "Measure.subject[x]",
          "path" : "Measure.subject[x]",
          "short" : "E.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device",
          "definition" : "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything.",
          "comment" : "The subject of the measure is critical in interpreting the criteria definitions, as the logic in the measures is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a measure (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          }
        },
        {
          "id" : "Measure.date",
          "path" : "Measure.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the measure was published. 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 measure changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the measure. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "Measure.publisher",
          "path" : "Measure.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the measure.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the measure is the organization or individual primarily responsible for the maintenance and upkeep of the measure. 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 measure. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the measure.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "Measure.contact",
          "path" : "Measure.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "Measure.description",
          "path" : "Measure.description",
          "short" : "Natural language description of the measure",
          "definition" : "A free text natural language description of the measure from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the measure was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the measure 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 measure is presumed to be the predominant language in the place the measure was created).",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.useContext",
          "path" : "Measure.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 measure instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "Measure.jurisdiction",
          "path" : "Measure.jurisdiction",
          "short" : "Intended jurisdiction for measure (if applicable)",
          "definition" : "A legal or geographic region in which the measure is intended to be used.",
          "comment" : "It may be possible for the measure to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "Measure.purpose",
          "path" : "Measure.purpose",
          "short" : "Why this measure is defined",
          "definition" : "Explanation of why this measure is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the measure. 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 measure.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.usage",
          "path" : "Measure.usage",
          "short" : "Describes the clinical usage of the measure",
          "definition" : "A detailed description, from a clinical perspective, of how the measure is used.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.copyright",
          "path" : "Measure.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the measure and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.approvalDate",
          "path" : "Measure.approvalDate",
          "short" : "When the measure was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.lastReviewDate",
          "path" : "Measure.lastReviewDate",
          "short" : "When the measure was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.effectivePeriod",
          "path" : "Measure.effectivePeriod",
          "short" : "When the measure is expected to be used",
          "definition" : "The period during which the measure content was or is planned to be in active use.",
          "comment" : "The effective period for a measure  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the measure are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Measure.topic",
          "path" : "Measure.topic",
          "short" : "The category of the measure, such as Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the measure. Topics provide a high-level categorization grouping types of measures that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the measure so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          }
        },
        {
          "id" : "Measure.author",
          "path" : "Measure.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "Measure.editor",
          "path" : "Measure.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.reviewer",
          "path" : "Measure.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Measure.endorser",
          "path" : "Measure.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Measure.relatedArtifact",
          "path" : "Measure.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Measures must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.library",
          "path" : "Measure.library",
          "short" : "Logic used by the measure",
          "definition" : "A reference to a Library resource containing the formal logic used by the measure.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.library",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.disclaimer",
          "path" : "Measure.disclaimer",
          "short" : "Disclaimer for use of the measure or its referenced content",
          "definition" : "Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure.",
          "requirements" : "Some organizations require that notices and disclosures be included when publishing measures that reference their intellecutal property.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.disclaimer",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.scoring",
          "path" : "Measure.scoring",
          "short" : "proportion | ratio | continuous-variable | cohort",
          "definition" : "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.scoring",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MeasureScoring"
            }],
            "strength" : "extensible",
            "description" : "The scoring type of the measure.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/measure-scoring"
          }
        },
        {
          "id" : "Measure.compositeScoring",
          "path" : "Measure.compositeScoring",
          "short" : "opportunity | all-or-nothing | linear | weighted",
          "definition" : "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.compositeScoring",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositeMeasureScoring"
            }],
            "strength" : "extensible",
            "description" : "The composite scoring method of the measure.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/composite-measure-scoring"
          }
        },
        {
          "id" : "Measure.type",
          "path" : "Measure.type",
          "short" : "process | outcome | structure | patient-reported-outcome | composite",
          "definition" : "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.type",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MeasureType"
            }],
            "strength" : "extensible",
            "description" : "The type of measure (includes codes from 2.16.840.1.113883.1.11.20368).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/measure-type"
          }
        },
        {
          "id" : "Measure.riskAdjustment",
          "path" : "Measure.riskAdjustment",
          "short" : "How risk adjustment is applied for this measure",
          "definition" : "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.",
          "comment" : "Describes the method of adjusting for clinical severity and conditions present at the start of care that can influence patient outcomes for making valid comparisons of outcome measures across providers. Indicates whether a measure is subject to the statistical process for reducing, removing, or clarifying the influences of confounding factors to allow for more useful comparisons.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.riskAdjustment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.rateAggregation",
          "path" : "Measure.rateAggregation",
          "short" : "How is rate aggregation performed for this measure",
          "definition" : "Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.",
          "comment" : "The measure rate for an organization or clinician is based upon the entities’ aggregate data and summarizes the performance of the entity over a given time period (e.g., monthly, quarterly, yearly). The aggregated data are derived from the results of a specific measure algorithm and, if appropriate, the application of specific risk adjustment models.  Can also be used to describe how to risk adjust the data based on supplemental data elements described in the eMeasure (e.g., pneumonia hospital measures antibiotic selection in the ICU versus non-ICU and then the roll-up of the two). This could be applied to aggregated cohort measure definitions (e.g., CDC's aggregate reporting for TB at the state level).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.rateAggregation",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.rationale",
          "path" : "Measure.rationale",
          "short" : "Detailed description of why the measure exists",
          "definition" : "Provides a succinct statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.",
          "requirements" : "Measure developers need to be able to provide a detailed description of the purpose of the measure. This element provides detailed rationale, where the purpose element provides a summary of the rationale.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.rationale",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.clinicalRecommendationStatement",
          "path" : "Measure.clinicalRecommendationStatement",
          "short" : "Summary of clinical guidelines",
          "definition" : "Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.clinicalRecommendationStatement",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.improvementNotation",
          "path" : "Measure.improvementNotation",
          "short" : "increase | decrease",
          "definition" : "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range).",
          "requirements" : "Measure consumers and implementers must be able to determine how to interpret a measure score.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.improvementNotation",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MeasureImprovementNotation"
            }],
            "strength" : "required",
            "description" : "Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/measure-improvement-notation|4.0.1"
          }
        },
        {
          "id" : "Measure.definition",
          "path" : "Measure.definition",
          "short" : "Defined terms used in the measure documentation",
          "definition" : "Provides a description of an individual term used within the measure.",
          "requirements" : "Measure developers must be able to provide precise definitions of terms used within measure descriptions and guidance to help communicate the intent of the measure.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.definition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.guidance",
          "path" : "Measure.guidance",
          "short" : "Additional guidance for implementers",
          "definition" : "Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.",
          "requirements" : "Measure developers must be able to provide additional guidance for implementers to understand the intent with greater specificity than that provided in the population criteria of the measure. This element provides detailed guidance, where the usage element provides a summary of the guidance.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.guidance",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Measure.group",
          "path" : "Measure.group",
          "short" : "Population criteria group",
          "definition" : "A group of population criteria for the measure.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.group",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.id",
          "path" : "Measure.group.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.extension",
          "path" : "Measure.group.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.modifierExtension",
          "path" : "Measure.group.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.group.code",
          "path" : "Measure.group.code",
          "short" : "Meaning of the group",
          "definition" : "Indicates a meaning for the group. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing groups to be correlated across measures.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.description",
          "path" : "Measure.group.description",
          "short" : "Summary description",
          "definition" : "The human readable description of this population group.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.population",
          "path" : "Measure.group.population",
          "short" : "Population criteria",
          "definition" : "A population criteria for the measure.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.group.population",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.population.id",
          "path" : "Measure.group.population.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.population.extension",
          "path" : "Measure.group.population.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.population.modifierExtension",
          "path" : "Measure.group.population.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.group.population.code",
          "path" : "Measure.group.population.code",
          "short" : "initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation",
          "definition" : "The type of population criteria.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.population.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MeasurePopulationType"
            }],
            "strength" : "extensible",
            "description" : "The type of population.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/measure-population"
          }
        },
        {
          "id" : "Measure.group.population.description",
          "path" : "Measure.group.population.description",
          "short" : "The human readable description of this population criteria",
          "definition" : "The human readable description of this population criteria.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.population.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.population.criteria",
          "path" : "Measure.group.population.criteria",
          "short" : "The criteria that defines this population",
          "definition" : "An expression that specifies the criteria for the population, typically the name of an expression in a library.",
          "comment" : "In the case of a continuous-variable or ratio measure, this may be the name of a function that calculates the value of the individual observation for each patient or event in the population. For these types of measures, individual observations are reported as observation resources included in the evaluatedResources bundle for each patient. See the MeasureReport resource or the Quality Reporting topic for more information.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.population.criteria",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier",
          "path" : "Measure.group.stratifier",
          "short" : "Stratifier criteria for the measure",
          "definition" : "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.group.stratifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.id",
          "path" : "Measure.group.stratifier.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.stratifier.extension",
          "path" : "Measure.group.stratifier.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.stratifier.modifierExtension",
          "path" : "Measure.group.stratifier.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.group.stratifier.code",
          "path" : "Measure.group.stratifier.code",
          "short" : "Meaning of the stratifier",
          "definition" : "Indicates a meaning for the stratifier. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.description",
          "path" : "Measure.group.stratifier.description",
          "short" : "The human readable description of this stratifier",
          "definition" : "The human readable description of this stratifier criteria.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.criteria",
          "path" : "Measure.group.stratifier.criteria",
          "short" : "How the measure should be stratified",
          "definition" : "An expression that specifies the criteria for the stratifier. This is typically the name of an expression defined within a referenced library, but it may also be a path to a stratifier element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.criteria",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.component",
          "path" : "Measure.group.stratifier.component",
          "short" : "Stratifier criteria component for the measure",
          "definition" : "A component of the stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path.",
          "comment" : "Stratifiers are defined either as a single criteria, or as a set of component criteria.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.group.stratifier.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.component.id",
          "path" : "Measure.group.stratifier.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.stratifier.component.extension",
          "path" : "Measure.group.stratifier.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.group.stratifier.component.modifierExtension",
          "path" : "Measure.group.stratifier.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.group.stratifier.component.code",
          "path" : "Measure.group.stratifier.component.code",
          "short" : "Meaning of the stratifier component",
          "definition" : "Indicates a meaning for the stratifier component. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.component.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.component.description",
          "path" : "Measure.group.stratifier.component.description",
          "short" : "The human readable description of this stratifier component",
          "definition" : "The human readable description of this stratifier criteria component.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.component.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.group.stratifier.component.criteria",
          "path" : "Measure.group.stratifier.component.criteria",
          "short" : "Component of how the measure should be stratified",
          "definition" : "An expression that specifies the criteria for this component of the stratifier. This is typically the name of an expression defined within a referenced library, but it may also be a path to a stratifier element.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.group.stratifier.component.criteria",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.supplementalData",
          "path" : "Measure.supplementalData",
          "short" : "What other data should be reported with the measure",
          "definition" : "The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.",
          "comment" : "Note that supplemental data are reported as observations for each patient and included in the evaluatedResources bundle. See the MeasureReport resource or the Quality Reporting topic for more information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.supplementalData",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.supplementalData.id",
          "path" : "Measure.supplementalData.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.supplementalData.extension",
          "path" : "Measure.supplementalData.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Measure.supplementalData.modifierExtension",
          "path" : "Measure.supplementalData.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.supplementalData.code",
          "path" : "Measure.supplementalData.code",
          "short" : "Meaning of the supplemental data",
          "definition" : "Indicates a meaning for the supplemental data. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing supplemental data to be correlated across measures.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.supplementalData.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.supplementalData.usage",
          "path" : "Measure.supplementalData.usage",
          "short" : "supplemental-data | risk-adjustment-factor",
          "definition" : "An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Measure.supplementalData.usage",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MeasureDataUsage"
            }],
            "strength" : "extensible",
            "description" : "The intended usage for supplemental data elements in the measure.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/measure-data-usage"
          }
        },
        {
          "id" : "Measure.supplementalData.description",
          "path" : "Measure.supplementalData.description",
          "short" : "The human readable description of this supplemental data",
          "definition" : "The human readable description of this supplemental data.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Measure.supplementalData.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Measure.supplementalData.criteria",
          "path" : "Measure.supplementalData.criteria",
          "short" : "Expression describing additional data to be reported",
          "definition" : "The criteria for the supplemental data. This is typically the name of a valid expression defined within a referenced library, but it may also be a path to a specific data element. The criteria defines the data to be returned for this element.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Measure.supplementalData.criteria",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Measure",
          "path" : "Measure",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Measure.url",
          "path" : "Measure.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "Measure.identifier",
          "path" : "Measure.identifier",
          "mustSupport" : true
        },
        {
          "id" : "Measure.version",
          "path" : "Measure.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Measure.name",
          "path" : "Measure.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Measure.title",
          "path" : "Measure.title",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Measure.experimental",
          "path" : "Measure.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "Measure.date",
          "path" : "Measure.date",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Measure.publisher",
          "path" : "Measure.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Measure.contact",
          "path" : "Measure.contact",
          "mustSupport" : true
        },
        {
          "id" : "Measure.description",
          "path" : "Measure.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Measure.useContext",
          "path" : "Measure.useContext",
          "mustSupport" : true
        },
        {
          "id" : "Measure.jurisdiction",
          "path" : "Measure.jurisdiction",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/servicerequest-genetics",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "servicerequest-genetics",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/servicerequest-genetics",
      "version" : "4.0.1",
      "name" : "ServiceRequest-Genetics",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-10-20",
      "publisher" : "Health Level Seven International (Clinical Genomics)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/clingenomics"
        }]
      }],
      "description" : "Describes how the ServiceRequest resource is used to for genetics",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "quick",
        "uri" : "http://siframework.org/cqf",
        "name" : "Quality Improvement and Clinical Knowledge (QUICK)"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "ServiceRequest",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "ServiceRequest",
          "path" : "ServiceRequest",
          "short" : "A request for a service to be performed",
          "definition" : "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.",
          "alias" : ["diagnostic request",
          "referral",
          "referral request",
          "transfer of care request"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "prr-1",
            "severity" : "error",
            "human" : "orderDetail SHALL only be present if code is present",
            "expression" : "orderDetail.empty() or code.exists()",
            "xpath" : "exists(f:code) or not(exists(f:orderDetail))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Request"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : "Act[moodCode<=INT]"
          }]
        },
        {
          "id" : "ServiceRequest.id",
          "path" : "ServiceRequest.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ServiceRequest.meta",
          "path" : "ServiceRequest.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ServiceRequest.implicitRules",
          "path" : "ServiceRequest.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "ServiceRequest.language",
          "path" : "ServiceRequest.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "ServiceRequest.text",
          "path" : "ServiceRequest.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "ServiceRequest.contained",
          "path" : "ServiceRequest.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ServiceRequest.extension",
          "path" : "ServiceRequest.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ServiceRequest.extension:Item",
          "path" : "ServiceRequest.extension",
          "sliceName" : "Item",
          "short" : "The items the orderer requested",
          "definition" : "The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/servicerequest-geneticsItem"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "ServiceRequest.modifierExtension",
          "path" : "ServiceRequest.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ServiceRequest.identifier",
          "path" : "ServiceRequest.identifier",
          "short" : "Identifiers assigned to this order",
          "definition" : "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.",
          "comment" : "The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "ORC.2, ORC.3, RF1-6 / RF1-11,"
          },
          {
            "identity" : "rim",
            "map" : ".identifier"
          },
          {
            "identity" : "quick",
            "map" : "ClinicalStatement.identifier"
          }]
        },
        {
          "id" : "ServiceRequest.instantiatesCanonical",
          "path" : "ServiceRequest.instantiatesCanonical",
          "short" : "Instantiates FHIR protocol or definition",
          "definition" : "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.",
          "comment" : "Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.instantiatesCanonical",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
            "http://hl7.org/fhir/StructureDefinition/PlanDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.instantiatesCanonical"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DEFN].target"
          }]
        },
        {
          "id" : "ServiceRequest.instantiatesUri",
          "path" : "ServiceRequest.instantiatesUri",
          "short" : "Instantiates external protocol or definition",
          "definition" : "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.",
          "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.instantiatesUri",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.instantiatesUri"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DEFN].target"
          }]
        },
        {
          "id" : "ServiceRequest.basedOn",
          "path" : "ServiceRequest.basedOn",
          "short" : "What request fulfills",
          "definition" : "Plan/proposal/order fulfilled by this request.",
          "alias" : ["fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC.8 (plus others)"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "ServiceRequest.replaces",
          "path" : "ServiceRequest.replaces",
          "short" : "What request replaces",
          "definition" : "The request takes the place of the referenced completed or terminated request(s).",
          "alias" : ["supersedes",
          "prior",
          "renewed order"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.replaces",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.replaces"
          },
          {
            "identity" : "v2",
            "map" : "Handled by message location of ORC (ORC.1=RO or RU)"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=RPLC].target"
          }]
        },
        {
          "id" : "ServiceRequest.requisition",
          "path" : "ServiceRequest.requisition",
          "short" : "Composite Request ID",
          "definition" : "A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.",
          "comment" : "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
          "requirements" : "Some business processes need to know if multiple items were ordered as part of the same \"requisition\" for billing or other purposes.",
          "alias" : ["grouperId",
          "groupIdentifier"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.requisition",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.groupIdentifier"
          },
          {
            "identity" : "v2",
            "map" : "ORC.4"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier"
          }]
        },
        {
          "id" : "ServiceRequest.status",
          "path" : "ServiceRequest.status",
          "short" : "draft | active | on-hold | revoked | completed | entered-in-error | unknown",
          "definition" : "The status of the order.",
          "comment" : "The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/task.html) resource.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestStatus"
            }],
            "strength" : "required",
            "description" : "The status of a service order.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "v2",
            "map" : "ORC.5,RF1-1"
          },
          {
            "identity" : "rim",
            "map" : ".status"
          },
          {
            "identity" : "quick",
            "map" : "Action.currentStatus"
          }]
        },
        {
          "id" : "ServiceRequest.intent",
          "path" : "ServiceRequest.intent",
          "short" : "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
          "definition" : "Whether the request is a proposal, plan, an original order or a reflex order.",
          "comment" : "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.intent",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestIntent"
            }],
            "strength" : "required",
            "description" : "The kind of service request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.intent"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)"
          }]
        },
        {
          "id" : "ServiceRequest.category",
          "path" : "ServiceRequest.category",
          "short" : "Classification of service",
          "definition" : "A code that classifies the service for searching, sorting and display purposes (e.g. \"Surgical Procedure\").",
          "comment" : "There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what service request are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestCategory"
            }],
            "strength" : "example",
            "description" : "Classification of the requested service.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/servicerequest-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "v2",
            "map" : "RF1-5"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"INT\"].code"
          }]
        },
        {
          "id" : "ServiceRequest.priority",
          "path" : "ServiceRequest.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the ServiceRequest should be addressed with respect to other requests.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If missing, this task should be performed with normal priority",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.priority"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.grade"
          },
          {
            "identity" : "v2",
            "map" : "TQ1.9, RF1-2"
          },
          {
            "identity" : "rim",
            "map" : ".priorityCode"
          }]
        },
        {
          "id" : "ServiceRequest.doNotPerform",
          "path" : "ServiceRequest.doNotPerform",
          "short" : "True if service/procedure should not be performed",
          "definition" : "Set this to true if the record is saying that the service/procedure should NOT be performed.",
          "comment" : "In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition.  If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.",
          "requirements" : "Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.doNotPerform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "If missing, the request is a positive request e.g. \"do perform\"",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.doNotPerform"
          },
          {
            "identity" : "rim",
            "map" : ".actionNegationInd"
          }]
        },
        {
          "id" : "ServiceRequest.code",
          "path" : "ServiceRequest.code",
          "short" : "What is being requested/ordered",
          "definition" : "A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.",
          "comment" : "Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example,  serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.",
          "alias" : ["service requested"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestCode"
            }],
            "strength" : "example",
            "description" : "Codes for tests or services that can be carried out by a designated individual, organization or healthcare service.  For laboratory, LOINC is  (preferred)[http://build.fhir.org/terminologies.html#preferred] and a valueset using LOINC Order codes is available [here](valueset-diagnostic-requests.html).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-code"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "v2",
            "map" : "PR1-3 / OBR-4  (varies by domain)"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "quick",
            "map" : "Procedure.procedureCode"
          }]
        },
        {
          "id" : "ServiceRequest.orderDetail",
          "path" : "ServiceRequest.orderDetail",
          "short" : "Additional order information",
          "definition" : "Additional details and instructions about the how the services are to be delivered.   For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.",
          "comment" : "For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.",
          "alias" : ["detailed instructions"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.orderDetail",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["prr-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "OrderDetail"
            }],
            "strength" : "example",
            "description" : "Codified order entry details which are based on order context.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "quick",
            "map" : "Procedure.procedureCode"
          }]
        },
        {
          "id" : "ServiceRequest.quantity[x]",
          "path" : "ServiceRequest.quantity[x]",
          "short" : "Service amount",
          "definition" : "An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).",
          "requirements" : "When ordering a service the number of service items may need to be specified separately from the the service item.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.quantity[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE"
          },
          {
            "identity" : "rim",
            "map" : ".quantity"
          }]
        },
        {
          "id" : "ServiceRequest.subject",
          "path" : "ServiceRequest.subject",
          "short" : "Individual or Entity the service is ordered for",
          "definition" : "On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.subject",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Location",
            "http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=SBJ].role"
          },
          {
            "identity" : "quick",
            "map" : "ClinicalStatement.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "ServiceRequest.encounter",
          "path" : "ServiceRequest.encounter",
          "short" : "Encounter in which the request was created",
          "definition" : "An encounter that provides additional information about the healthcare context in which this request is made.",
          "alias" : ["context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
          },
          {
            "identity" : "quick",
            "map" : "ClinicalStatement.encounter"
          }]
        },
        {
          "id" : "ServiceRequest.occurrence[x]",
          "path" : "ServiceRequest.occurrence[x]",
          "short" : "When service should occur",
          "definition" : "The date/time at which the requested service should occur.",
          "alias" : ["schedule"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.occurrence[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.planned"
          },
          {
            "identity" : "v2",
            "map" : "TQ1/TQ2, OBR-7/OBR-8"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "quick",
            "map" : "Procedure.procedureSchedule"
          }]
        },
        {
          "id" : "ServiceRequest.asNeeded[x]",
          "path" : "ServiceRequest.asNeeded[x]",
          "short" : "Preconditions for service",
          "definition" : "If a CodeableConcept is present, it indicates the pre-condition for performing the service.  For example \"pain\", \"on flare-up\", etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.asNeeded[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          },
          {
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProcedureAsNeededReason"
            }],
            "strength" : "example",
            "description" : "A coded concept identifying the pre-condition that should hold prior to performing a procedure.  For example \"pain\", \"on flare-up\", etc.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"
          },
          {
            "identity" : "quick",
            "map" : "Proposal.prnReason.reason"
          }]
        },
        {
          "id" : "ServiceRequest.authoredOn",
          "path" : "ServiceRequest.authoredOn",
          "short" : "Date request signed",
          "definition" : "When the request transitioned to being actionable.",
          "alias" : ["orderedOn"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.authoredOn",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.authoredOn"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "ORC.9,  RF1-7 / RF1-9"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          },
          {
            "identity" : "quick",
            "map" : "Proposal.proposedAtTime"
          }]
        },
        {
          "id" : "ServiceRequest.requester",
          "path" : "ServiceRequest.requester",
          "short" : "Who/what is requesting service",
          "definition" : "The individual who initiated the request and has responsibility for its activation.",
          "comment" : "This not the dispatcher, but rather who is the authorizer.  This element is not intended to handle delegation which would generally be managed through the Provenance resource.",
          "alias" : ["author",
          "orderer"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.requester",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.requester"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.author"
          },
          {
            "identity" : "v2",
            "map" : "ORC.12, PRT"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          },
          {
            "identity" : "quick",
            "map" : "ClinicalStatement.statementAuthor"
          }]
        },
        {
          "id" : "ServiceRequest.performerType",
          "path" : "ServiceRequest.performerType",
          "short" : "Performer role",
          "definition" : "Desired type of performer for doing the requested service.",
          "comment" : "This is a  role, not  a participation type.  In other words, does not describe the task but describes the capacity.  For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.",
          "alias" : ["specialty"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.performerType",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestParticipantRole"
            }],
            "strength" : "example",
            "description" : "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/participant-role"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.performerType"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "PRT, RF!-3"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code"
          }]
        },
        {
          "id" : "ServiceRequest.performer",
          "path" : "ServiceRequest.performer",
          "short" : "Requested performer",
          "definition" : "The desired performer for doing the requested service.  For example, the surgeon, dermatopathologist, endoscopist, etc.",
          "comment" : "If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order.  If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/extension-request-performerorder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).",
          "alias" : ["request recipient"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/HealthcareService",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"
          }]
        },
        {
          "id" : "ServiceRequest.locationCode",
          "path" : "ServiceRequest.locationCode",
          "short" : "Requested location",
          "definition" : "The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.locationCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestLocation"
            }],
            "strength" : "example",
            "description" : "A location type where services are delivered.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=LOC].role[scoper.determinerCode=KIND].code"
          }]
        },
        {
          "id" : "ServiceRequest.locationReference",
          "path" : "ServiceRequest.locationReference",
          "short" : "Requested location",
          "definition" : "A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.locationReference",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=LOC].role[scoper.determinerCode=INSTANCE]"
          }]
        },
        {
          "id" : "ServiceRequest.reasonCode",
          "path" : "ServiceRequest.reasonCode",
          "short" : "Explanation/Justification for procedure or service",
          "definition" : "An explanation or justification for why this service is being requested in coded or textual form.   This is often for billing purposes.  May relate to the resources referred to in `supportingInfo`.",
          "comment" : "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.   Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/servicerequest-example-di.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.reasonCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ServiceRequestReason"
            }],
            "strength" : "example",
            "description" : "Diagnosis or problem codes justifying the reason for requesting the service investigation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-reason"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "v2",
            "map" : "ORC.16, RF1-10"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode"
          }]
        },
        {
          "id" : "ServiceRequest.reasonReference",
          "path" : "ServiceRequest.reasonReference",
          "short" : "Explanation/Justification for service or service",
          "definition" : "Indicates another resource that provides a justification for why this service is being requested.   May relate to the resources referred to in `supportingInfo`.",
          "comment" : "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.    To be as specific as possible,  a reference to  *Observation* or *Condition* should be used if available.  Otherwise when referencing  *DiagnosticReport*  it should contain a finding  in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`.   When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request.  Use  the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/servicerequest-example-di.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.reasonReference",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
            "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.reasonReference"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "v2",
            "map" : "ORC.16"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=RSON].target"
          }]
        },
        {
          "id" : "ServiceRequest.insurance",
          "path" : "ServiceRequest.insurance",
          "short" : "Associated insurance coverage",
          "definition" : "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.insurance",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Coverage",
            "http://hl7.org/fhir/StructureDefinition/ClaimResponse"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.insurance"
          },
          {
            "identity" : "v2",
            "map" : "IN1/IN2"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COVBY].target"
          }]
        },
        {
          "id" : "ServiceRequest.supportingInfo",
          "path" : "ServiceRequest.supportingInfo",
          "short" : "Additional clinical information",
          "definition" : "Additional clinical information about the patient or specimen that may influence the services or their interpretations.     This information includes diagnosis, clinical findings and other observations.  In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\".  This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example,  reporting the amount of inspired oxygen for blood gas measurements.",
          "comment" : "To represent information about how the services are to be delivered use the `instructions` element.",
          "alias" : ["Ask at order entry question",
          "AOE"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.supportingInfo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.supportingInfo"
          },
          {
            "identity" : "v2",
            "map" : "Accompanying segments"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=PERT].target"
          }]
        },
        {
          "id" : "ServiceRequest.specimen",
          "path" : "ServiceRequest.specimen",
          "short" : "Procedure Samples",
          "definition" : "One or more specimens that the laboratory procedure will use.",
          "comment" : "Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to.    Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/specimen.html) resource points to the ServiceRequest.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.specimen",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SPM"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=SPC].role"
          }]
        },
        {
          "id" : "ServiceRequest.bodySite",
          "path" : "ServiceRequest.bodySite",
          "short" : "Location on Body",
          "definition" : "Anatomic location where the procedure should be performed. This is the target site.",
          "comment" : "Only used if not implicit in the code found in ServiceRequest.code.  If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/extension-procedure-targetbodystructure.html).",
          "requirements" : "Knowing where the procedure is performed is important for tracking if multiple sites are possible.",
          "alias" : ["location"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.bodySite",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SPM"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "quick",
            "map" : "Procedure.targetBodySite"
          }]
        },
        {
          "id" : "ServiceRequest.note",
          "path" : "ServiceRequest.note",
          "short" : "Comments",
          "definition" : "Any other notes and comments made about the service request. For example, internal billing notes.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.note"
          },
          {
            "identity" : "v2",
            "map" : "NTE"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
          },
          {
            "identity" : "quick",
            "map" : "ClinicalStatement.additionalText"
          }]
        },
        {
          "id" : "ServiceRequest.patientInstruction",
          "path" : "ServiceRequest.patientInstruction",
          "short" : "Patient or consumer-oriented instructions",
          "definition" : "Instructions in terms that are understood by the patient or consumer.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ServiceRequest.patientInstruction",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          }]
        },
        {
          "id" : "ServiceRequest.relevantHistory",
          "path" : "ServiceRequest.relevantHistory",
          "short" : "Request provenance",
          "definition" : "Key events in the history of the request.",
          "comment" : "This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ServiceRequest.relevantHistory",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Provenance"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.relevantHistory"
          },
          {
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "ServiceRequest",
          "path" : "ServiceRequest",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "ServiceRequest.extension:Item",
          "path" : "ServiceRequest.extension",
          "sliceName" : "Item",
          "short" : "The items the orderer requested",
          "definition" : "The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/servicerequest-geneticsItem"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/groupdefinition",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "groupdefinition",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "fhir"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/groupdefinition",
      "version" : "4.0.1",
      "name" : "Group Definition",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces a descriptive group that can be used in definitional resources",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Group",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Group",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Group",
          "path" : "Group",
          "short" : "Group of multiple entities",
          "definition" : "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.",
          "comment" : "If both Group.characteristic and Group.member are present, then the members are the individuals who were found who met the characteristic.  It's possible that there might be other candidate members who meet the characteristic and aren't (yet) in the list.  All members SHALL have the listed characteristics.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "grp-1",
            "severity" : "error",
            "human" : "Can only have members if group is \"actual\"",
            "expression" : "member.empty() or (actual = true)",
            "xpath" : "f:actual/@value=true() or not(exists(f:member))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Group"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "Entity[determinerCode=\"GRP\" or determinerCode=\"GRP_KIND\"]"
          }]
        },
        {
          "id" : "Group.id",
          "path" : "Group.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.meta",
          "path" : "Group.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.implicitRules",
          "path" : "Group.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Group.language",
          "path" : "Group.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Group.text",
          "path" : "Group.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Group.contained",
          "path" : "Group.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.extension",
          "path" : "Group.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.modifierExtension",
          "path" : "Group.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.identifier",
          "path" : "Group.identifier",
          "short" : "Unique id",
          "definition" : "A unique business identifier for this group.",
          "requirements" : "Allows the group to be referenced from external specifications.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Group.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "unique(./id[displayable=\"true\" and scope=\"OBJ\"])"
          }]
        },
        {
          "id" : "Group.active",
          "path" : "Group.active",
          "short" : "Whether this group's record is in active use",
          "definition" : "Indicates whether the record for the group is available for use or is merely being retained for historical purposes.",
          "requirements" : "Need to be able to mark a group record as not to be used because it was created in error or is otherwise no longer available (e.g. a herd that no longer exists).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.active",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "This resource is generally assumed to be active if no value is provided for the active element",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "./statusCode"
          }]
        },
        {
          "id" : "Group.type",
          "path" : "Group.type",
          "short" : "person | animal | practitioner | device | medication | substance",
          "definition" : "Identifies the broad classification of the kind of resources the group includes.",
          "comment" : "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medication or Substance for the other types.).",
          "requirements" : "Identifies what type of resources the group is made up of.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupType"
            }],
            "strength" : "required",
            "description" : "Types of resources that are part of group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/group-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "person: ./classCode=\"PSN\"  animal: ./classCode=\"ANM\"  device: ./classCode=\"DEV\"  medication: ./classCode=\"MMAT\" and ./playedRole[isNormalRole() and classCode=\"THER\"]  food: ./classCode=\"FOOD\""
          }]
        },
        {
          "id" : "Group.actual",
          "path" : "Group.actual",
          "short" : "Descriptive or actual",
          "definition" : "If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.",
          "requirements" : "There are use-cases for groups that define specific collections of individuals, and other groups that define \"types\" of intended individuals.  The requirements for both kinds of groups are similar, so we use a single resource, distinguished by this flag.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.actual",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "fixedBoolean" : false,
          "condition" : ["grp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "true: ./determinerCode=\"GRP\"  false: ./determinerCode=\"GRP_KIND\""
          }]
        },
        {
          "id" : "Group.code",
          "path" : "Group.code",
          "short" : "Kind of Group members",
          "definition" : "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.",
          "comment" : "This would generally be omitted for Person resources.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupKind"
            }],
            "strength" : "example",
            "description" : "Kind of particular resource; e.g. cow, syringe, lake, etc."
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          }]
        },
        {
          "id" : "Group.name",
          "path" : "Group.name",
          "short" : "Label for Group",
          "definition" : "A label assigned to the group for human identification and communication.",
          "requirements" : "Used to identify the group in human communication.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./name[type=\"ST\"]"
          }]
        },
        {
          "id" : "Group.quantity",
          "path" : "Group.quantity",
          "short" : "Number of members",
          "definition" : "A count of the number of resource instances that are part of the group.",
          "comment" : "Note that the quantity may be less than the number of members if some of the members are not active.",
          "requirements" : "Group size is a common defining characteristic.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.quantity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "unsignedInt"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./quantity"
          }]
        },
        {
          "id" : "Group.managingEntity",
          "path" : "Group.managingEntity",
          "short" : "Entity that is the custodian of the Group's definition",
          "definition" : "Entity responsible for defining and maintaining Group characteristics and/or registered members.",
          "comment" : "This does not strictly align with ownership of a herd or flock, but may suffice to represent that relationship in simple cases. More complex cases will require an extension.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.managingEntity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.characteristic",
          "path" : "Group.characteristic",
          "short" : "Include / Exclude group members by Trait",
          "definition" : "Identifies traits whose presence r absence is shared by members of the group.",
          "comment" : "All the identified characteristics must be true for an entity to a member of the group.",
          "requirements" : "Needs to be a generic mechanism for identifying what individuals can be part of a group.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Group.characteristic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=\"SBJ\"]/act[isNormalAct and classCode=\"OBS\" and moodCode=\"EVN\"]"
          }]
        },
        {
          "id" : "Group.characteristic.id",
          "path" : "Group.characteristic.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.characteristic.extension",
          "path" : "Group.characteristic.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.characteristic.modifierExtension",
          "path" : "Group.characteristic.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.characteristic.code",
          "path" : "Group.characteristic.code",
          "short" : "Kind of characteristic",
          "definition" : "A code that identifies the kind of trait being asserted.",
          "requirements" : "Need a formal way of identifying the characteristic being described.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupCharacteristicKind"
            }],
            "strength" : "example",
            "description" : "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./code"
          }]
        },
        {
          "id" : "Group.characteristic.value[x]",
          "path" : "Group.characteristic.value[x]",
          "short" : "Value held by characteristic",
          "definition" : "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.",
          "comment" : "For Range, it means members of the group have a value that falls somewhere within the specified range.",
          "requirements" : "The value of the characteristic is what determines group membership.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Reference"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupCharacteristicValue"
            }],
            "strength" : "example",
            "description" : "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./value"
          }]
        },
        {
          "id" : "Group.characteristic.exclude",
          "path" : "Group.characteristic.exclude",
          "short" : "Group includes or excludes",
          "definition" : "If true, indicates the characteristic is one that is NOT held by members of the group.",
          "comment" : "This is labeled as \"Is Modifier\" because applications cannot wrongly include excluded members as included or vice versa.",
          "requirements" : "Sometimes group membership is determined by characteristics not possessed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.exclude",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./valueNegationInd"
          }]
        },
        {
          "id" : "Group.characteristic.period",
          "path" : "Group.characteristic.period",
          "short" : "Period over which characteristic is tested",
          "definition" : "The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member",
          "path" : "Group.member",
          "short" : "Who or what is in group",
          "definition" : "Identifies the resource instances that are members of the group.",
          "requirements" : "Often the only thing of interest about a group is \"who's in it\".",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Group.member",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["grp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./scopedRole[isNormalRole() and classCode=\"MBR\"]/player"
          }]
        },
        {
          "id" : "Group.member.id",
          "path" : "Group.member.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.member.extension",
          "path" : "Group.member.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.member.modifierExtension",
          "path" : "Group.member.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.member.entity",
          "path" : "Group.member.entity",
          "short" : "Reference to the group member",
          "definition" : "A reference to the entity that is a member of the group. Must be consistent with Group.type. If the entity is another group, then the type must be the same.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.member.entity",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Medication",
            "http://hl7.org/fhir/StructureDefinition/Substance",
            "http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member.period",
          "path" : "Group.member.period",
          "short" : "Period member belonged to the group",
          "definition" : "The period that the member was in the group, if known.",
          "requirements" : "Need to track who was in a group at a  particular time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.member.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "meaningWhenMissing" : "The member is in the group at this time",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member.inactive",
          "path" : "Group.member.inactive",
          "short" : "If member is no longer in group",
          "definition" : "A flag to indicate that the member is no longer in the group, but previously may have been a member.",
          "requirements" : "Sometimes you don't know when someone stopped being in a group, but not when.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.member.inactive",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Members are considered active unless explicitly specified otherwise",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Group",
          "path" : "Group",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Group.actual",
          "path" : "Group.actual",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }],
          "fixedBoolean" : false
        },
        {
          "id" : "Group.member",
          "path" : "Group.member",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/actualgroup",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "actualgroup",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "fhir"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/actualgroup",
      "version" : "4.0.1",
      "name" : "Actual Group",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces an actual group, rather than a definitional group",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Group",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Group",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Group",
          "path" : "Group",
          "short" : "Group of multiple entities",
          "definition" : "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.",
          "comment" : "If both Group.characteristic and Group.member are present, then the members are the individuals who were found who met the characteristic.  It's possible that there might be other candidate members who meet the characteristic and aren't (yet) in the list.  All members SHALL have the listed characteristics.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "grp-1",
            "severity" : "error",
            "human" : "Can only have members if group is \"actual\"",
            "expression" : "member.empty() or (actual = true)",
            "xpath" : "f:actual/@value=true() or not(exists(f:member))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Group"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "Entity[determinerCode=\"GRP\" or determinerCode=\"GRP_KIND\"]"
          }]
        },
        {
          "id" : "Group.id",
          "path" : "Group.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.meta",
          "path" : "Group.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.implicitRules",
          "path" : "Group.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Group.language",
          "path" : "Group.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Group.text",
          "path" : "Group.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Group.contained",
          "path" : "Group.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.extension",
          "path" : "Group.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.modifierExtension",
          "path" : "Group.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.identifier",
          "path" : "Group.identifier",
          "short" : "Unique id",
          "definition" : "A unique business identifier for this group.",
          "requirements" : "Allows the group to be referenced from external specifications.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Group.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "unique(./id[displayable=\"true\" and scope=\"OBJ\"])"
          }]
        },
        {
          "id" : "Group.active",
          "path" : "Group.active",
          "short" : "Whether this group's record is in active use",
          "definition" : "Indicates whether the record for the group is available for use or is merely being retained for historical purposes.",
          "requirements" : "Need to be able to mark a group record as not to be used because it was created in error or is otherwise no longer available (e.g. a herd that no longer exists).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.active",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "This resource is generally assumed to be active if no value is provided for the active element",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "./statusCode"
          }]
        },
        {
          "id" : "Group.type",
          "path" : "Group.type",
          "short" : "person | animal | practitioner | device | medication | substance",
          "definition" : "Identifies the broad classification of the kind of resources the group includes.",
          "comment" : "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medication or Substance for the other types.).",
          "requirements" : "Identifies what type of resources the group is made up of.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupType"
            }],
            "strength" : "required",
            "description" : "Types of resources that are part of group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/group-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "person: ./classCode=\"PSN\"  animal: ./classCode=\"ANM\"  device: ./classCode=\"DEV\"  medication: ./classCode=\"MMAT\" and ./playedRole[isNormalRole() and classCode=\"THER\"]  food: ./classCode=\"FOOD\""
          }]
        },
        {
          "id" : "Group.actual",
          "path" : "Group.actual",
          "short" : "Descriptive or actual",
          "definition" : "If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.",
          "requirements" : "There are use-cases for groups that define specific collections of individuals, and other groups that define \"types\" of intended individuals.  The requirements for both kinds of groups are similar, so we use a single resource, distinguished by this flag.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.actual",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "fixedBoolean" : true,
          "condition" : ["grp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "true: ./determinerCode=\"GRP\"  false: ./determinerCode=\"GRP_KIND\""
          }]
        },
        {
          "id" : "Group.code",
          "path" : "Group.code",
          "short" : "Kind of Group members",
          "definition" : "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.",
          "comment" : "This would generally be omitted for Person resources.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupKind"
            }],
            "strength" : "example",
            "description" : "Kind of particular resource; e.g. cow, syringe, lake, etc."
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          }]
        },
        {
          "id" : "Group.name",
          "path" : "Group.name",
          "short" : "Label for Group",
          "definition" : "A label assigned to the group for human identification and communication.",
          "requirements" : "Used to identify the group in human communication.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./name[type=\"ST\"]"
          }]
        },
        {
          "id" : "Group.quantity",
          "path" : "Group.quantity",
          "short" : "Number of members",
          "definition" : "A count of the number of resource instances that are part of the group.",
          "comment" : "Note that the quantity may be less than the number of members if some of the members are not active.",
          "requirements" : "Group size is a common defining characteristic.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.quantity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "unsignedInt"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./quantity"
          }]
        },
        {
          "id" : "Group.managingEntity",
          "path" : "Group.managingEntity",
          "short" : "Entity that is the custodian of the Group's definition",
          "definition" : "Entity responsible for defining and maintaining Group characteristics and/or registered members.",
          "comment" : "This does not strictly align with ownership of a herd or flock, but may suffice to represent that relationship in simple cases. More complex cases will require an extension.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.managingEntity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Group.characteristic",
          "path" : "Group.characteristic",
          "short" : "Include / Exclude group members by Trait",
          "definition" : "Identifies traits whose presence r absence is shared by members of the group.",
          "comment" : "All the identified characteristics must be true for an entity to a member of the group.",
          "requirements" : "Needs to be a generic mechanism for identifying what individuals can be part of a group.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Group.characteristic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=\"SBJ\"]/act[isNormalAct and classCode=\"OBS\" and moodCode=\"EVN\"]"
          }]
        },
        {
          "id" : "Group.characteristic.id",
          "path" : "Group.characteristic.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.characteristic.extension",
          "path" : "Group.characteristic.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.characteristic.modifierExtension",
          "path" : "Group.characteristic.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.characteristic.code",
          "path" : "Group.characteristic.code",
          "short" : "Kind of characteristic",
          "definition" : "A code that identifies the kind of trait being asserted.",
          "requirements" : "Need a formal way of identifying the characteristic being described.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupCharacteristicKind"
            }],
            "strength" : "example",
            "description" : "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./code"
          }]
        },
        {
          "id" : "Group.characteristic.value[x]",
          "path" : "Group.characteristic.value[x]",
          "short" : "Value held by characteristic",
          "definition" : "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.",
          "comment" : "For Range, it means members of the group have a value that falls somewhere within the specified range.",
          "requirements" : "The value of the characteristic is what determines group membership.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Reference"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupCharacteristicValue"
            }],
            "strength" : "example",
            "description" : "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./value"
          }]
        },
        {
          "id" : "Group.characteristic.exclude",
          "path" : "Group.characteristic.exclude",
          "short" : "Group includes or excludes",
          "definition" : "If true, indicates the characteristic is one that is NOT held by members of the group.",
          "comment" : "This is labeled as \"Is Modifier\" because applications cannot wrongly include excluded members as included or vice versa.",
          "requirements" : "Sometimes group membership is determined by characteristics not possessed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.exclude",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./valueNegationInd"
          }]
        },
        {
          "id" : "Group.characteristic.period",
          "path" : "Group.characteristic.period",
          "short" : "Period over which characteristic is tested",
          "definition" : "The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.characteristic.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member",
          "path" : "Group.member",
          "short" : "Who or what is in group",
          "definition" : "Identifies the resource instances that are members of the group.",
          "requirements" : "Often the only thing of interest about a group is \"who's in it\".",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Group.member",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["grp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./scopedRole[isNormalRole() and classCode=\"MBR\"]/player"
          }]
        },
        {
          "id" : "Group.member.id",
          "path" : "Group.member.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.member.extension",
          "path" : "Group.member.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Group.member.modifierExtension",
          "path" : "Group.member.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Group.member.entity",
          "path" : "Group.member.entity",
          "short" : "Reference to the group member",
          "definition" : "A reference to the entity that is a member of the group. Must be consistent with Group.type. If the entity is another group, then the type must be the same.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Group.member.entity",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Medication",
            "http://hl7.org/fhir/StructureDefinition/Substance",
            "http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member.period",
          "path" : "Group.member.period",
          "short" : "Period member belonged to the group",
          "definition" : "The period that the member was in the group, if known.",
          "requirements" : "Need to track who was in a group at a  particular time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.member.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "meaningWhenMissing" : "The member is in the group at this time",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Group.member.inactive",
          "path" : "Group.member.inactive",
          "short" : "If member is no longer in group",
          "definition" : "A flag to indicate that the member is no longer in the group, but previously may have been a member.",
          "requirements" : "Sometimes you don't know when someone stopped being in a group, but not when.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Group.member.inactive",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Members are considered active unless explicitly specified otherwise",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Group",
          "path" : "Group",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Group.actual",
          "path" : "Group.actual",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }],
          "fixedBoolean" : true
        },
        {
          "id" : "Group.characteristic",
          "path" : "Group.characteristic",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-genetic",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "familymemberhistory-genetic",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "pc"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/familymemberhistory-genetic",
      "version" : "4.0.1",
      "name" : "Family member history for genetics analysis",
      "status" : "draft",
      "experimental" : false,
      "date" : "2013-10-02",
      "publisher" : "Health Level Seven International (Clinical Genomics)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/clingenomics"
        }]
      }],
      "description" : "Adds additional information to a family member history supporting both the capture of mother/father relationships as well as additional observations necessary to enable genetics-based risk analysis for patients",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "FamilyMemberHistory",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "FamilyMemberHistory",
          "path" : "FamilyMemberHistory",
          "short" : "Information about patient's relatives, relevant for patient",
          "definition" : "Significant health conditions for a person related to the patient relevant in the context of care for the patient.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "fhs-1",
            "severity" : "error",
            "human" : "Can have age[x] or born[x], but not both",
            "expression" : "age.empty() or born.empty()",
            "xpath" : "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
          },
          {
            "key" : "fhs-2",
            "severity" : "error",
            "human" : "Can only have estimatedAge if age[x] is present",
            "expression" : "age.exists() or estimatedAge.empty()",
            "xpath" : "exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))",
            "source" : "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "v2",
            "map" : "Not in scope for v2"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "FamilyMemberHistory.id",
          "path" : "FamilyMemberHistory.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "FamilyMemberHistory.meta",
          "path" : "FamilyMemberHistory.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "FamilyMemberHistory.implicitRules",
          "path" : "FamilyMemberHistory.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "FamilyMemberHistory.language",
          "path" : "FamilyMemberHistory.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "FamilyMemberHistory.text",
          "path" : "FamilyMemberHistory.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "FamilyMemberHistory.contained",
          "path" : "FamilyMemberHistory.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "FamilyMemberHistory.extension",
          "path" : "FamilyMemberHistory.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "FamilyMemberHistory.extension:Parent",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Parent",
          "short" : "Mother(s) & Father(s) - genetic & other",
          "definition" : "Identifies a parent of the relative.",
          "comment" : "Some individuals may have more than two parents (e.g. genetic vs. adoptive parents).  Even non-genetic relationships can be relevant in terms of genetic exposure.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "player[classCode<LIV, determinerCode=INSTANCE].scopesRole"
          }]
        },
        {
          "id" : "FamilyMemberHistory.extension:Sibling",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Sibling",
          "short" : "natural brother(s) & natural sister(s) - genetic & other",
          "definition" : "Identifies a sibling of the relative.",
          "comment" : "Some cases may have complex inner-pedigree-tree relationship. For instance, double cousin relationship need two extra link with In pedigree tree itself. This can't be revealed by relationship to subject.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-sibling"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "mustSupport" : true,
          "isModifier" : false
        },
        {
          "id" : "FamilyMemberHistory.extension:Observation",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Observation",
          "short" : "Genetic markers, ethnicity, etc.",
          "definition" : "Allows capturing risk-relevant observations about the relative that aren't themselves a specific health condition; e.g. Certain ethnic ancestries that are disease-relevant, presence of particular genetic markers, etc.",
          "comment" : "This may be extended with additional genomics-specific resources when they are ready.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-observation"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source"
          }]
        },
        {
          "id" : "FamilyMemberHistory.modifierExtension",
          "path" : "FamilyMemberHistory.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "FamilyMemberHistory.identifier",
          "path" : "FamilyMemberHistory.identifier",
          "short" : "External Id(s) for this record",
          "definition" : "Business identifiers assigned to this family member history by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
          "comment" : "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
          "requirements" : "Allows identification of the family member history as it is known by various participating systems and in a way that remains consistent across servers.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "FamilyMemberHistory.instantiatesCanonical",
          "path" : "FamilyMemberHistory.instantiatesCanonical",
          "short" : "Instantiates FHIR protocol or definition",
          "definition" : "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this FamilyMemberHistory.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.instantiatesCanonical",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PlanDefinition",
            "http://hl7.org/fhir/StructureDefinition/Questionnaire",
            "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
            "http://hl7.org/fhir/StructureDefinition/Measure",
            "http://hl7.org/fhir/StructureDefinition/OperationDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.instantiatesCanonical"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DEFN].target"
          }]
        },
        {
          "id" : "FamilyMemberHistory.instantiatesUri",
          "path" : "FamilyMemberHistory.instantiatesUri",
          "short" : "Instantiates external protocol or definition",
          "definition" : "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this FamilyMemberHistory.",
          "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.instantiatesUri",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.instantiatesUri"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DEFN].target"
          }]
        },
        {
          "id" : "FamilyMemberHistory.status",
          "path" : "FamilyMemberHistory.status",
          "short" : "partial | completed | entered-in-error | health-unknown",
          "definition" : "A code specifying the status of the record of the family history of a specific family member.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FamilyHistoryStatus"
            }],
            "strength" : "required",
            "description" : "A code that identifies the status of the family history record.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/history-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "FamilyMemberHistory.dataAbsentReason",
          "path" : "FamilyMemberHistory.dataAbsentReason",
          "short" : "subject-unknown | withheld | unable-to-obtain | deferred",
          "definition" : "Describes why the family member's history is not available.",
          "requirements" : "This is a separate element to allow it to have a distinct binding from reasonCode.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FamilyHistoryAbsentReason"
            }],
            "strength" : "example",
            "description" : "Codes describing the reason why a family member's history is not available.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/history-absent-reason"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".reasonCode"
          }]
        },
        {
          "id" : "FamilyMemberHistory.patient",
          "path" : "FamilyMemberHistory.patient",
          "short" : "Patient history is about",
          "definition" : "The person who this history concerns.",
          "alias" : ["Proband"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.patient",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ].role"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "FamilyMemberHistory.date",
          "path" : "FamilyMemberHistory.date",
          "short" : "When history was recorded or last updated",
          "definition" : "The date (and possibly time) when the family member history was recorded or last updated.",
          "comment" : "This should be captured even if the same as the date on the List aggregating the full family history.",
          "requirements" : "Allows determination of how current the summary is.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "FamilyMemberHistory.name",
          "path" : "FamilyMemberHistory.name",
          "short" : "The family member described",
          "definition" : "This will either be a name or a description; e.g. \"Aunt Susan\", \"my cousin with the red hair\".",
          "requirements" : "Allows greater ease in ensuring the same person is being talked about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "name"
          }]
        },
        {
          "id" : "FamilyMemberHistory.relationship:Relationship",
          "path" : "FamilyMemberHistory.relationship",
          "sliceName" : "Relationship",
          "short" : "Relationship to the subject",
          "definition" : "The type of relationship this person has to the patient (father, mother, brother etc.).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.relationship",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FamilialRelationship"
            }],
            "strength" : "example",
            "description" : "The nature of the relationship between the patient and the related person being described in the family member history.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-FamilyMember"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "FamilyMemberHistory.sex:Sex",
          "path" : "FamilyMemberHistory.sex",
          "sliceName" : "Sex",
          "short" : "male | female | other | unknown",
          "definition" : "The birth sex of the family member.",
          "comment" : "This element should ideally reflect whether the individual is genetically male or female.  However, as reported information based on the knowledge of the patient or reporting friend/relative, there may be situations where the reported sex might not be totally accurate.  E.g. 'Aunt Sue' might be XY rather than XX.  Questions soliciting this information should be phrased to encourage capture of genetic sex where known.  However, systems performing analysis should also allow for the possibility of imprecision with this element.",
          "requirements" : "Not all relationship codes imply sex and the relative's sex can be relevant for risk assessments.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.sex",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Sex"
            }],
            "strength" : "extensible",
            "description" : "Codes describing the sex assigned at birth as documented on the birth registration.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/administrative-gender"
          }
        },
        {
          "id" : "FamilyMemberHistory.born[x]:BornAge",
          "path" : "FamilyMemberHistory.born[x]",
          "sliceName" : "BornAge",
          "short" : "(approximate) date of birth",
          "definition" : "The actual or approximate date of birth of the relative.",
          "requirements" : "Allows calculation of the relative's age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.born[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          },
          {
            "code" : "date"
          },
          {
            "code" : "string"
          }],
          "condition" : ["fhs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "player[classCode=LIV, determinerCode=INSTANCE]. birthDate (could be URG)"
          }]
        },
        {
          "id" : "FamilyMemberHistory.age[x]:Age",
          "path" : "FamilyMemberHistory.age[x]",
          "sliceName" : "Age",
          "short" : "(approximate) age",
          "definition" : "The age of the relative at the time the family member history is recorded.",
          "comment" : "use estimatedAge to indicate whether the age is actual or not.",
          "requirements" : "While age can be calculated from date of birth, sometimes recording age directly is more natural for clinicians.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.age[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "string"
          }],
          "condition" : ["fhs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ].act[classCode=OBS,moodCode=EVN, code=\"age\"].value"
          }]
        },
        {
          "id" : "FamilyMemberHistory.estimatedAge",
          "path" : "FamilyMemberHistory.estimatedAge",
          "short" : "Age is estimated?",
          "definition" : "If true, indicates that the age value specified is an estimated value.",
          "comment" : "This element is labeled as a modifier because the fact that age is estimated can/should change the results of any algorithm that calculates based on the specified age.",
          "requirements" : "Clinicians often prefer to specify an estimaged age rather than an age range.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.estimatedAge",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "It is unknown whether the age is an estimate or not",
          "condition" : ["fhs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "FamilyMemberHistory.deceased[x]:DeceasedAge",
          "path" : "FamilyMemberHistory.deceased[x]",
          "sliceName" : "DeceasedAge",
          "short" : "Dead? How old/when?",
          "definition" : "Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.deceased[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "date"
          },
          {
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "player[classCode=LIV, determinerCode=INSTANCE].deceasedInd, deceasedDate (could be URG)  For age, you'd hang an observation off the role"
          }]
        },
        {
          "id" : "FamilyMemberHistory.reasonCode",
          "path" : "FamilyMemberHistory.reasonCode",
          "short" : "Why was family member history performed?",
          "definition" : "Describes why the family member history occurred in coded or textual form.",
          "comment" : "Textual reasons can be captured using reasonCode.text.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.reasonCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FamilyHistoryReason"
            }],
            "strength" : "example",
            "description" : "Codes indicating why the family member history was done.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode"
          }]
        },
        {
          "id" : "FamilyMemberHistory.reasonReference",
          "path" : "FamilyMemberHistory.reasonReference",
          "short" : "Why was family member history performed?",
          "definition" : "Indicates a Condition, Observation, AllergyIntolerance, or QuestionnaireResponse that justifies this family member history event.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.reasonReference",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
            "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonReference"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=RSON].target"
          }]
        },
        {
          "id" : "FamilyMemberHistory.note",
          "path" : "FamilyMemberHistory.note",
          "short" : "General note about related person",
          "definition" : "This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.note"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition",
          "path" : "FamilyMemberHistory.condition",
          "sliceName" : "Condition",
          "short" : "Condition that the related person had",
          "definition" : "The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "FamilyMemberHistory.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION, value<Diagnosis]"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.id",
          "path" : "FamilyMemberHistory.condition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.extension",
          "path" : "FamilyMemberHistory.condition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.modifierExtension",
          "path" : "FamilyMemberHistory.condition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.code",
          "path" : "FamilyMemberHistory.condition.code",
          "short" : "Condition suffered by relation",
          "definition" : "The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.condition.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ConditionCode"
            }],
            "strength" : "example",
            "description" : "Identification of the Condition or diagnosis.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".value"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.outcome",
          "path" : "FamilyMemberHistory.condition.outcome",
          "short" : "deceased | permanent disability | etc.",
          "definition" : "Indicates what happened following the condition.  If the condition resulted in death, deceased date is captured on the relation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.condition.outcome",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ConditionOutcome"
            }],
            "strength" : "example",
            "description" : "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/condition-outcome"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=OUTC)].target[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION].value"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.contributedToDeath",
          "path" : "FamilyMemberHistory.condition.contributedToDeath",
          "short" : "Whether the condition contributed to the cause of death",
          "definition" : "This condition contributed to the cause of death of the related person. If contributedToDeath is not populated, then it is unknown.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.condition.contributedToDeath",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.onset[x]",
          "path" : "FamilyMemberHistory.condition.onset[x]",
          "short" : "When condition first manifested",
          "definition" : "Either the age of onset, range of approximate age or descriptive string can be recorded.  For conditions with multiple occurrences, this describes the first known occurrence.",
          "requirements" : "Age of onset of a condition in relatives is predictive of risk for the patient.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.condition.onset[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"Subject Age at measurement\", value<Diagnosis].value[@xsi:typeCode='TS' or 'IVL_TS']  Use originalText for string"
          }]
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.note",
          "path" : "FamilyMemberHistory.condition.note",
          "short" : "Extra information about condition",
          "definition" : "An area where general notes can be placed about this specific condition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "FamilyMemberHistory.condition.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "FamilyMemberHistory",
          "path" : "FamilyMemberHistory",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "FamilyMemberHistory.extension:Parent",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Parent",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.extension:Sibling",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Sibling",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-sibling"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.extension:Observation",
          "path" : "FamilyMemberHistory.extension",
          "sliceName" : "Observation",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-observation"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.relationship:Relationship",
          "path" : "FamilyMemberHistory.relationship",
          "sliceName" : "Relationship",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.sex:Sex",
          "path" : "FamilyMemberHistory.sex",
          "sliceName" : "Sex",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.born[x]:BornAge",
          "path" : "FamilyMemberHistory.born[x]",
          "sliceName" : "BornAge",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Period"
          },
          {
            "code" : "date"
          },
          {
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.age[x]:Age",
          "path" : "FamilyMemberHistory.age[x]",
          "sliceName" : "Age",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.deceased[x]:DeceasedAge",
          "path" : "FamilyMemberHistory.deceased[x]",
          "sliceName" : "DeceasedAge",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "date"
          },
          {
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition",
          "path" : "FamilyMemberHistory.condition",
          "sliceName" : "Condition",
          "min" : 0,
          "max" : "*",
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.code",
          "path" : "FamilyMemberHistory.condition.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.outcome",
          "path" : "FamilyMemberHistory.condition.outcome",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.onset[x]",
          "path" : "FamilyMemberHistory.condition.onset[x]",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Age"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "FamilyMemberHistory.condition:Condition.note",
          "path" : "FamilyMemberHistory.condition.note",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Annotation"
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareableactivitydefinition",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareableactivitydefinition",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareableactivitydefinition",
      "version" : "4.0.1",
      "name" : "Shareable ActivityDefinition",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the activity definition metadata required by HL7 and other organizations that share and publish activity definitions",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "ActivityDefinition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "ActivityDefinition",
          "path" : "ActivityDefinition",
          "short" : "The definition of a specific activity to be taken, independent of any particular patient or context",
          "definition" : "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "adf-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          },
          {
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          },
          {
            "identity" : "rim",
            "map" : "Act[classCode=ACT; moodCode=DEFN]"
          }]
        },
        {
          "id" : "ActivityDefinition.id",
          "path" : "ActivityDefinition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ActivityDefinition.meta",
          "path" : "ActivityDefinition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ActivityDefinition.implicitRules",
          "path" : "ActivityDefinition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "ActivityDefinition.language",
          "path" : "ActivityDefinition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "ActivityDefinition.text",
          "path" : "ActivityDefinition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "ActivityDefinition.contained",
          "path" : "ActivityDefinition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.extension",
          "path" : "ActivityDefinition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.modifierExtension",
          "path" : "ActivityDefinition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.url",
          "path" : "ActivityDefinition.url",
          "short" : "Canonical identifier for this activity definition, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this activity definition 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 at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the activity definition to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier[scope=BUSN;reliability=ISS]"
          }]
        },
        {
          "id" : "ActivityDefinition.identifier",
          "path" : "ActivityDefinition.identifier",
          "short" : "Additional identifier for the activity definition",
          "definition" : "A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.version",
          "path" : "ActivityDefinition.version",
          "short" : "Business version of the activity definition",
          "definition" : "The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.",
          "comment" : "There may be different activity definition 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 activity definition with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.name",
          "path" : "ActivityDefinition.name",
          "short" : "Name for this activity definition (computer friendly)",
          "definition" : "A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.title",
          "path" : "ActivityDefinition.title",
          "short" : "Name for this activity definition (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the activity definition.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          },
          {
            "identity" : "rim",
            "map" : ".title"
          }]
        },
        {
          "id" : "ActivityDefinition.subtitle",
          "path" : "ActivityDefinition.subtitle",
          "short" : "Subordinate title of the activity definition",
          "definition" : "An explanatory or alternate title for the activity definition giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.status",
          "path" : "ActivityDefinition.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this activity definition. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of activity definitions that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status {different ValueSet}"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : ".status"
          }]
        },
        {
          "id" : "ActivityDefinition.experimental",
          "path" : "ActivityDefinition.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of activity definitions that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level activity definition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.subject[x]",
          "path" : "ActivityDefinition.subject[x]",
          "short" : "Type of individual the activity definition is intended for",
          "definition" : "A code or group definition that describes the intended subject of the activity being defined.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "ActivityDefinition.date",
          "path" : "ActivityDefinition.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the activity definition was published. 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 activity definition changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "ActivityDefinition.publisher",
          "path" : "ActivityDefinition.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the activity definition.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. 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 activity definition. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the activity definition.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher {as string instead of CodeableConcept}"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          }]
        },
        {
          "id" : "ActivityDefinition.contact",
          "path" : "ActivityDefinition.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=CALLBCK].role"
          }]
        },
        {
          "id" : "ActivityDefinition.description",
          "path" : "ActivityDefinition.description",
          "short" : "Natural language description of the activity definition",
          "definition" : "A free text natural language description of the activity definition from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition 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 activity definition is presumed to be the predominant language in the place the activity definition was created).",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.useContext",
          "path" : "ActivityDefinition.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 activity definition instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.jurisdiction",
          "path" : "ActivityDefinition.jurisdiction",
          "short" : "Intended jurisdiction for activity definition (if applicable)",
          "definition" : "A legal or geographic region in which the activity definition is intended to be used.",
          "comment" : "It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.purpose",
          "path" : "ActivityDefinition.purpose",
          "short" : "Why this activity definition is defined",
          "definition" : "Explanation of why this activity definition is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the activity definition. 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 activity definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode.text"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.usage",
          "path" : "ActivityDefinition.usage",
          "short" : "Describes the clinical usage of the activity definition",
          "definition" : "A detailed description of how the activity definition is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.copyright",
          "path" : "ActivityDefinition.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the activity definition and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.approvalDate",
          "path" : "ActivityDefinition.approvalDate",
          "short" : "When the activity definition was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.lastReviewDate",
          "path" : "ActivityDefinition.lastReviewDate",
          "short" : "When the activity definition was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.effectivePeriod",
          "path" : "ActivityDefinition.effectivePeriod",
          "short" : "When the activity definition is expected to be used",
          "definition" : "The period during which the activity definition content was or is planned to be in active use.",
          "comment" : "The effective period for a activity definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the activity definition are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ActivityDefinition.topic",
          "path" : "ActivityDefinition.topic",
          "short" : "E.g. Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the activity definition so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "ActivityDefinition.author",
          "path" : "ActivityDefinition.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "ActivityDefinition.editor",
          "path" : "ActivityDefinition.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.reviewer",
          "path" : "ActivityDefinition.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "ActivityDefinition.endorser",
          "path" : "ActivityDefinition.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "ActivityDefinition.relatedArtifact",
          "path" : "ActivityDefinition.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Activity definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}"
          }]
        },
        {
          "id" : "ActivityDefinition.library",
          "path" : "ActivityDefinition.library",
          "short" : "Logic used by the activity definition",
          "definition" : "A reference to a Library resource containing any formal logic used by the activity definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.library",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]"
          }]
        },
        {
          "id" : "ActivityDefinition.kind",
          "path" : "ActivityDefinition.kind",
          "short" : "Kind of resource",
          "definition" : "A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.",
          "comment" : "May determine what types of extensions are permitted.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.kind",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActivityDefinitionKind"
            }],
            "strength" : "required",
            "description" : "The kind of activity the definition is describing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".classCode"
          }]
        },
        {
          "id" : "ActivityDefinition.profile",
          "path" : "ActivityDefinition.profile",
          "short" : "What profile the resource needs to conform to",
          "definition" : "A profile to which the target of the activity definition is expected to conform.",
          "requirements" : "Allows profiles to be used to describe the types of activities that can be performed within a workflow, protocol, or order set.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.profile",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.code",
          "path" : "ActivityDefinition.code",
          "short" : "Detail type of activity",
          "definition" : "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
          "comment" : "Tends to be less relevant for activities involving particular products.",
          "requirements" : "Allows matching performed to planned as well as validation against protocols.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActivityDefinitionType"
            }],
            "strength" : "example",
            "description" : "Detailed type of the activity; e.g. CBC.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-code"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".code"
          }]
        },
        {
          "id" : "ActivityDefinition.intent",
          "path" : "ActivityDefinition.intent",
          "short" : "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
          "definition" : "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.intent",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestIntent"
            }],
            "strength" : "required",
            "description" : "Codes indicating the degree of authority/intentionality associated with a request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
          }
        },
        {
          "id" : "ActivityDefinition.priority",
          "path" : "ActivityDefinition.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the activity  should be addressed with respect to other requests.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          }
        },
        {
          "id" : "ActivityDefinition.doNotPerform",
          "path" : "ActivityDefinition.doNotPerform",
          "short" : "True if the activity should not be performed",
          "definition" : "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.",
          "comment" : "This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the \"remove\" type of a PlanDefinition or RequestGroup.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.doNotPerform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
          "isSummary" : true
        },
        {
          "id" : "ActivityDefinition.timing[x]",
          "path" : "ActivityDefinition.timing[x]",
          "short" : "When activity is to occur",
          "definition" : "The period, timing or frequency upon which the described activity is to occur.",
          "requirements" : "Allows prompting for activities and detection of missed planned activities.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.timing[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Timing"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Duration"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".effectiveTime"
          }]
        },
        {
          "id" : "ActivityDefinition.location",
          "path" : "ActivityDefinition.location",
          "short" : "Where it should happen",
          "definition" : "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
          "comment" : "May reference a specific clinical location or may just identify a type of location.",
          "requirements" : "Helps in planning of activity.",
          "alias" : ["facility"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.location",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=LOC].role"
          }]
        },
        {
          "id" : "ActivityDefinition.participant",
          "path" : "ActivityDefinition.participant",
          "short" : "Who should participate in the action",
          "definition" : "Indicates who should participate in performing the action described.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.participant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=PFM]"
          }]
        },
        {
          "id" : "ActivityDefinition.participant.id",
          "path" : "ActivityDefinition.participant.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ActivityDefinition.participant.extension",
          "path" : "ActivityDefinition.participant.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ActivityDefinition.participant.modifierExtension",
          "path" : "ActivityDefinition.participant.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.participant.type",
          "path" : "ActivityDefinition.participant.type",
          "short" : "patient | practitioner | related-person | device",
          "definition" : "The type of participant in the action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.participant.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActivityParticipantType"
            }],
            "strength" : "required",
            "description" : "The type of participant in the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".role.classCode"
          }]
        },
        {
          "id" : "ActivityDefinition.participant.role",
          "path" : "ActivityDefinition.participant.role",
          "short" : "E.g. Nurse, Surgeon, Parent, etc.",
          "definition" : "The role the participant should play in performing the described action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.participant.role",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActivityParticipantRole"
            }],
            "strength" : "example",
            "description" : "Defines roles played by participants for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-role"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".role.code"
          }]
        },
        {
          "id" : "ActivityDefinition.product[x]",
          "path" : "ActivityDefinition.product[x]",
          "short" : "What's administered/supplied",
          "definition" : "Identifies the food, drug or other product being consumed or supplied in the activity.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.product[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
            "http://hl7.org/fhir/StructureDefinition/Substance"]
          },
          {
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActivityProduct"
            }],
            "strength" : "example",
            "description" : "Code describing the type of substance or medication.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/medication-codes"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=CSM].role"
          }]
        },
        {
          "id" : "ActivityDefinition.quantity",
          "path" : "ActivityDefinition.quantity",
          "short" : "How much is administered/consumed/supplied",
          "definition" : "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).",
          "alias" : ["dose"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.quantity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".quantity {for classCode=SPLY}"
          }]
        },
        {
          "id" : "ActivityDefinition.dosage",
          "path" : "ActivityDefinition.dosage",
          "short" : "Detailed dosage instructions",
          "definition" : "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.",
          "comment" : "If a dosage instruction is used, the definition should not specify timing or quantity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.dosage",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Dosage"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]"
          }]
        },
        {
          "id" : "ActivityDefinition.bodySite",
          "path" : "ActivityDefinition.bodySite",
          "short" : "What part of body to perform on",
          "definition" : "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).",
          "comment" : "Only used if not implicit in the code found in ServiceRequest.type.",
          "requirements" : "Knowing where the procedure is made is important for tracking if multiple sites are possible.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.bodySite",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "A code that identifies the anatomical location.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".targetSiteCode {for classCode=PROC, SBADM}"
          }]
        },
        {
          "id" : "ActivityDefinition.specimenRequirement",
          "path" : "ActivityDefinition.specimenRequirement",
          "short" : "What specimens are required to perform this action",
          "definition" : "Defines specimen requirements for the action to be performed, such as required specimens for a lab test.",
          "requirements" : "Needed to represent lab order definitions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.specimenRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.observationRequirement",
          "path" : "ActivityDefinition.observationRequirement",
          "short" : "What observations are required to perform this action",
          "definition" : "Defines observation requirements for the action to be performed, such as body weight or surface area.",
          "requirements" : "Needed to represent observation definitions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.observationRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.observationResultRequirement",
          "path" : "ActivityDefinition.observationResultRequirement",
          "short" : "What observations must be produced by this action",
          "definition" : "Defines the observations that are expected to be produced by the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.observationResultRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ActivityDefinition.transform",
          "path" : "ActivityDefinition.transform",
          "short" : "Transform to apply the template",
          "definition" : "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.",
          "comment" : "Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.transform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue",
          "path" : "ActivityDefinition.dynamicValue",
          "short" : "Dynamic aspects of the definition",
          "definition" : "Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.",
          "comment" : "Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ActivityDefinition.dynamicValue",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue.id",
          "path" : "ActivityDefinition.dynamicValue.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue.extension",
          "path" : "ActivityDefinition.dynamicValue.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue.modifierExtension",
          "path" : "ActivityDefinition.dynamicValue.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue.path",
          "path" : "ActivityDefinition.dynamicValue.path",
          "short" : "The path to the element to be set dynamically",
          "definition" : "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/fhirpath.html#simple) for full details).",
          "comment" : "The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.dynamicValue.path",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.dynamicValue.expression",
          "path" : "ActivityDefinition.dynamicValue.expression",
          "short" : "An expression that provides the dynamic value for the customization",
          "definition" : "An expression specifying the value of the customized element.",
          "comment" : "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ActivityDefinition.dynamicValue.expression",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "ActivityDefinition",
          "path" : "ActivityDefinition",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "ActivityDefinition.url",
          "path" : "ActivityDefinition.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "ActivityDefinition.identifier",
          "path" : "ActivityDefinition.identifier",
          "mustSupport" : true
        },
        {
          "id" : "ActivityDefinition.version",
          "path" : "ActivityDefinition.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ActivityDefinition.name",
          "path" : "ActivityDefinition.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ActivityDefinition.title",
          "path" : "ActivityDefinition.title",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "ActivityDefinition.experimental",
          "path" : "ActivityDefinition.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "ActivityDefinition.date",
          "path" : "ActivityDefinition.date",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "ActivityDefinition.publisher",
          "path" : "ActivityDefinition.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ActivityDefinition.contact",
          "path" : "ActivityDefinition.contact",
          "mustSupport" : true
        },
        {
          "id" : "ActivityDefinition.description",
          "path" : "ActivityDefinition.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ActivityDefinition.useContext",
          "path" : "ActivityDefinition.useContext",
          "mustSupport" : true
        },
        {
          "id" : "ActivityDefinition.jurisdiction",
          "path" : "ActivityDefinition.jurisdiction",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cdshooksrequestgroup",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cdshooksrequestgroup",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cdshooksrequestgroup",
      "version" : "4.0.1",
      "name" : "CDS Hooks RequestGroup",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Defines a RequestGroup that can represent a CDS Hooks response",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "RequestGroup",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/RequestGroup",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "RequestGroup",
          "path" : "RequestGroup",
          "short" : "A group of related requests",
          "definition" : "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\".",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Request"
          }]
        },
        {
          "id" : "RequestGroup.id",
          "path" : "RequestGroup.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "RequestGroup.meta",
          "path" : "RequestGroup.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "RequestGroup.implicitRules",
          "path" : "RequestGroup.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "RequestGroup.language",
          "path" : "RequestGroup.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "RequestGroup.text",
          "path" : "RequestGroup.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "RequestGroup.contained",
          "path" : "RequestGroup.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.extension",
          "path" : "RequestGroup.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.modifierExtension",
          "path" : "RequestGroup.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.identifier",
          "path" : "RequestGroup.identifier",
          "short" : "Business identifier",
          "definition" : "Allows a service to provide a unique, business identifier for the request.",
          "requirements" : "Allows identification of the request as it is known by various participating systems and in a way that remains consistent across servers.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "RequestGroup.instantiatesCanonical",
          "path" : "RequestGroup.instantiatesCanonical",
          "short" : "Instantiates FHIR protocol or definition",
          "definition" : "A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.instantiatesCanonical",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.instantiatesCanonical"
          }]
        },
        {
          "id" : "RequestGroup.instantiatesUri",
          "path" : "RequestGroup.instantiatesUri",
          "short" : "Instantiates external protocol or definition",
          "definition" : "A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.instantiatesUri",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.instantiatesUri"
          }]
        },
        {
          "id" : "RequestGroup.basedOn",
          "path" : "RequestGroup.basedOn",
          "short" : "Fulfills plan, proposal, or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this request.",
          "requirements" : "Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.basedOn"
          }]
        },
        {
          "id" : "RequestGroup.replaces",
          "path" : "RequestGroup.replaces",
          "short" : "Request(s) replaced by this request",
          "definition" : "Completed or terminated request(s) whose function is taken by this new request.",
          "comment" : "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
          "requirements" : "Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests.",
          "alias" : ["supersedes",
          "prior",
          "renewed order"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.replaces",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.replaces"
          }]
        },
        {
          "id" : "RequestGroup.groupIdentifier",
          "path" : "RequestGroup.groupIdentifier",
          "short" : "Composite request this is part of",
          "definition" : "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.",
          "comment" : "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
          "requirements" : "Some business processes need to know if multiple items were ordered as part of the same \"prescription\" or \"requisition\" for billing or other purposes.",
          "alias" : ["grouperid",
          "requisition"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.groupIdentifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.groupIdentifier"
          }]
        },
        {
          "id" : "RequestGroup.status",
          "path" : "RequestGroup.status",
          "short" : "draft | active | on-hold | revoked | completed | entered-in-error | unknown",
          "definition" : "The current state of the request. For request groups, the status reflects the status of all the requests in the group.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestStatus"
            }],
            "strength" : "required",
            "description" : "Codes identifying the lifecycle stage of a request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "RequestGroup.intent",
          "path" : "RequestGroup.intent",
          "short" : "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
          "definition" : "Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain.",
          "requirements" : "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.",
          "alias" : ["category"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.intent",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestIntent"
            }],
            "strength" : "required",
            "description" : "Codes indicating the degree of authority/intentionality associated with a request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.intent"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "RequestGroup.priority",
          "path" : "RequestGroup.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the request should be addressed with respect to other requests.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If missing, this request should be performed with normal priority",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.priority"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.grade"
          }]
        },
        {
          "id" : "RequestGroup.code",
          "path" : "RequestGroup.code",
          "short" : "What's being requested/ordered",
          "definition" : "A code that identifies what the overall request group is.",
          "comment" : "This element can be used to provide a code that captures the meaning of the request group as a whole, as opposed to the code of the action element, which captures the meaning of the individual actions within the request group.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          }]
        },
        {
          "id" : "RequestGroup.subject",
          "path" : "RequestGroup.subject",
          "short" : "Who the request group is about",
          "definition" : "The subject for which the request group was created.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "RequestGroup.encounter",
          "path" : "RequestGroup.encounter",
          "short" : "Created as part of",
          "definition" : "Describes the context of the request group, if any.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          }]
        },
        {
          "id" : "RequestGroup.authoredOn",
          "path" : "RequestGroup.authoredOn",
          "short" : "When the request group was authored",
          "definition" : "Indicates when the request group was created.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.authoredOn",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.authoredOn"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "RequestGroup.author",
          "path" : "RequestGroup.author",
          "short" : "Device or practitioner that authored the request group",
          "definition" : "Provides a reference to the author of the request group.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.author",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.requester"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.author"
          }]
        },
        {
          "id" : "RequestGroup.reasonCode",
          "path" : "RequestGroup.reasonCode",
          "short" : "Why the request group is needed",
          "definition" : "Describes the reason for the request group in coded or textual form.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.reasonCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          }]
        },
        {
          "id" : "RequestGroup.reasonReference",
          "path" : "RequestGroup.reasonReference",
          "short" : "Why the request group is needed",
          "definition" : "Indicates another resource whose existence justifies this request group.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.reasonReference",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
            "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.reasonReference"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          }]
        },
        {
          "id" : "RequestGroup.note",
          "path" : "RequestGroup.note",
          "short" : "Additional notes about the response",
          "definition" : "Provides a mechanism to communicate additional information about the response.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.note"
          }]
        },
        {
          "id" : "RequestGroup.action",
          "path" : "RequestGroup.action",
          "short" : "Proposed actions, if any",
          "definition" : "The actions, if any, produced by the evaluation of the artifact.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "rqg-1",
            "severity" : "error",
            "human" : "Must have resource or action but not both",
            "expression" : "resource.exists() != action.exists()",
            "xpath" : "exists(f:resource) != exists(f:action)",
            "source" : "http://hl7.org/fhir/StructureDefinition/RequestGroup"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.id",
          "path" : "RequestGroup.action.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.extension",
          "path" : "RequestGroup.action.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.modifierExtension",
          "path" : "RequestGroup.action.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.action.prefix",
          "path" : "RequestGroup.action.prefix",
          "short" : "User-visible prefix for the action (e.g. 1. or A.)",
          "definition" : "A user-visible prefix for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.prefix",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.title",
          "path" : "RequestGroup.action.title",
          "short" : "User-visible title",
          "definition" : "The title of the action displayed to a user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.description",
          "path" : "RequestGroup.action.description",
          "short" : "Short description of the action",
          "definition" : "A short description of the action used to provide a summary to display to the user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "RequestGroup.action.textEquivalent",
          "path" : "RequestGroup.action.textEquivalent",
          "short" : "Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system",
          "definition" : "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.textEquivalent",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "RequestGroup.action.priority",
          "path" : "RequestGroup.action.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the action should be addressed with respect to other actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.priority"
          }]
        },
        {
          "id" : "RequestGroup.action.code",
          "path" : "RequestGroup.action.code",
          "short" : "Code representing the meaning of the action or sub-actions",
          "definition" : "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.code"
          }]
        },
        {
          "id" : "RequestGroup.action.documentation",
          "path" : "RequestGroup.action.documentation",
          "short" : "Supporting documentation for the intended performer of the action",
          "definition" : "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.supportingInfo"
          }]
        },
        {
          "id" : "RequestGroup.action.condition",
          "path" : "RequestGroup.action.condition",
          "short" : "Whether or not the action is applicable",
          "definition" : "An expression that describes applicability criteria, or start/stop conditions for the action.",
          "comment" : "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all of the conditions are true.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.condition.id",
          "path" : "RequestGroup.action.condition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.condition.extension",
          "path" : "RequestGroup.action.condition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.condition.modifierExtension",
          "path" : "RequestGroup.action.condition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.action.condition.kind",
          "path" : "RequestGroup.action.condition.kind",
          "short" : "applicability | start | stop",
          "definition" : "The kind of condition.",
          "comment" : "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.condition.kind",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionConditionKind"
            }],
            "strength" : "required",
            "description" : "The kind of condition for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.condition.expression",
          "path" : "RequestGroup.action.condition.expression",
          "short" : "Boolean-valued expression",
          "definition" : "An expression that returns true or false, indicating whether or not the condition is satisfied.",
          "comment" : "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.condition.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.relatedAction",
          "path" : "RequestGroup.action.relatedAction",
          "short" : "Relationship to another action",
          "definition" : "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.relatedAction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.relatedAction.id",
          "path" : "RequestGroup.action.relatedAction.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.relatedAction.extension",
          "path" : "RequestGroup.action.relatedAction.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "RequestGroup.action.relatedAction.modifierExtension",
          "path" : "RequestGroup.action.relatedAction.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "RequestGroup.action.relatedAction.actionId",
          "path" : "RequestGroup.action.relatedAction.actionId",
          "short" : "What action this is related to",
          "definition" : "The element id of the action this is related to.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.relatedAction.actionId",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.relatedAction.relationship",
          "path" : "RequestGroup.action.relatedAction.relationship",
          "short" : "before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end",
          "definition" : "The relationship of this action to the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.relatedAction.relationship",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRelationshipType"
            }],
            "strength" : "required",
            "description" : "Defines the types of relationships between actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.relatedAction.offset[x]",
          "path" : "RequestGroup.action.relatedAction.offset[x]",
          "short" : "Time offset for the relationship",
          "definition" : "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.relatedAction.offset[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          },
          {
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.timing[x]",
          "path" : "RequestGroup.action.timing[x]",
          "short" : "When the action should take place",
          "definition" : "An optional value describing when the action should be performed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.timing[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.occurrence[x]"
          }]
        },
        {
          "id" : "RequestGroup.action.participant",
          "path" : "RequestGroup.action.participant",
          "short" : "Who should perform the action",
          "definition" : "The participant that should perform or be responsible for this action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.participant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Request.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          }]
        },
        {
          "id" : "RequestGroup.action.type",
          "path" : "RequestGroup.action.type",
          "short" : "create | update | remove | fire-event",
          "definition" : "The type of action to perform (create, update, remove).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionType"
            }],
            "strength" : "extensible",
            "description" : "The type of action to be performed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-type"
          }
        },
        {
          "id" : "RequestGroup.action.groupingBehavior",
          "path" : "RequestGroup.action.groupingBehavior",
          "short" : "visual-group | logical-group | sentence-group",
          "definition" : "Defines the grouping behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.groupingBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionGroupingBehavior"
            }],
            "strength" : "required",
            "description" : "Defines organization behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.selectionBehavior",
          "path" : "RequestGroup.action.selectionBehavior",
          "short" : "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
          "definition" : "Defines the selection behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.selectionBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionSelectionBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.requiredBehavior",
          "path" : "RequestGroup.action.requiredBehavior",
          "short" : "must | could | must-unless-documented",
          "definition" : "Defines expectations around whether an action is required.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.requiredBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRequiredBehavior"
            }],
            "strength" : "required",
            "description" : "Defines expectations around whether an action or action group is required.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.precheckBehavior",
          "path" : "RequestGroup.action.precheckBehavior",
          "short" : "yes | no",
          "definition" : "Defines whether the action should usually be preselected.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.precheckBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionPrecheckBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection frequency behavior for an action or group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.cardinalityBehavior",
          "path" : "RequestGroup.action.cardinalityBehavior",
          "short" : "single | multiple",
          "definition" : "Defines whether the action can be selected multiple times.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.cardinalityBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionCardinalityBehavior"
            }],
            "strength" : "required",
            "description" : "Defines behavior for an action or a group for how many times that item may be repeated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
          }
        },
        {
          "id" : "RequestGroup.action.resource",
          "path" : "RequestGroup.action.resource",
          "short" : "The target of the action",
          "definition" : "The resource that is the target of the action (e.g. CommunicationRequest).",
          "comment" : "The target resource SHALL be a [Request](http://hl7.org/fhir/request.html) resource with a Request.intent set to \"option\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "RequestGroup.action.resource",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "condition" : ["rqg-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "RequestGroup.action.action",
          "path" : "RequestGroup.action.action",
          "short" : "Sub action",
          "definition" : "Sub actions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "RequestGroup.action.action",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#RequestGroup.action",
          "condition" : ["rqg-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "RequestGroup",
          "path" : "RequestGroup",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "RequestGroup.identifier",
          "path" : "RequestGroup.identifier",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "RequestGroup.instantiatesUri",
          "path" : "RequestGroup.instantiatesUri",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "RequestGroup.priority",
          "path" : "RequestGroup.priority",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.subject",
          "path" : "RequestGroup.subject",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.authoredOn",
          "path" : "RequestGroup.authoredOn",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.author",
          "path" : "RequestGroup.author",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action",
          "path" : "RequestGroup.action"
        },
        {
          "id" : "RequestGroup.action.title",
          "path" : "RequestGroup.action.title",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.description",
          "path" : "RequestGroup.action.description",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.priority",
          "path" : "RequestGroup.action.priority",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.documentation",
          "path" : "RequestGroup.action.documentation",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.condition",
          "path" : "RequestGroup.action.condition",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.timing[x]",
          "path" : "RequestGroup.action.timing[x]",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.participant",
          "path" : "RequestGroup.action.participant",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.type",
          "path" : "RequestGroup.action.type",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.selectionBehavior",
          "path" : "RequestGroup.action.selectionBehavior",
          "mustSupport" : true
        },
        {
          "id" : "RequestGroup.action.resource",
          "path" : "RequestGroup.action.resource",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/provenance-relevant-history",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "provenance-relevant-history",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 3
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "sec"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/provenance-relevant-history",
      "version" : "4.0.1",
      "name" : "Provenance Relevant History",
      "status" : "draft",
      "experimental" : false,
      "date" : "2013-12-03",
      "publisher" : "Health Level Seven International",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/Committees/fhir-i"
        }]
      }],
      "description" : "Guidance on using Provenance for related history elements",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w3c.prov",
        "uri" : "http://www.w3.org/ns/prov",
        "name" : "W3C PROV"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "fhirauditevent",
        "uri" : "http://hl7.org/fhir/auditevent",
        "name" : "FHIR AuditEvent Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Provenance",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Provenance",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Provenance",
          "path" : "Provenance",
          "short" : "Who, What, When for a set of resources",
          "definition" : "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies.",
          "comment" : "Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.",
          "alias" : ["History",
          "Event",
          "Activity"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "rim",
            "map" : "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity"
          }]
        },
        {
          "id" : "Provenance.id",
          "path" : "Provenance.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Provenance.meta",
          "path" : "Provenance.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Provenance.implicitRules",
          "path" : "Provenance.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Provenance.language",
          "path" : "Provenance.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Provenance.text",
          "path" : "Provenance.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Provenance.contained",
          "path" : "Provenance.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.extension",
          "path" : "Provenance.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.modifierExtension",
          "path" : "Provenance.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.target",
          "path" : "Provenance.target",
          "short" : "Resource version",
          "definition" : "This points to the version of the resource that was created as a result of this historical record action.  Typically only a single resource will be referenced, but if the same action is performed to multiple resources in the context of a transaction, some systems may link multiple resource instances.",
          "comment" : "The reference SHALL be version-specific.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Provenance.target",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : "./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.reference"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity Created/Updated"
          }]
        },
        {
          "id" : "Provenance.occurred[x]",
          "path" : "Provenance.occurred[x]",
          "short" : "When the activity occurred",
          "definition" : "This indicates the time the resource action (creation, revision, deletion, etc.) occurred.",
          "comment" : "Both low and high will be set to the time the record event occurred.  (In a future version, this element will likely be a choice with dateTime so that multiple values aren't needed.).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.occurred[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurred[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "rim",
            "map" : "./effectiveTime[type=IVL_TS]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.startTime & Activity.endTime"
          }]
        },
        {
          "id" : "Provenance.recorded",
          "path" : "Provenance.recorded",
          "short" : "When the activity was recorded / updated",
          "definition" : "The instant of time at which the activity was recorded.",
          "comment" : "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.recorded",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.recorded"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.when"
          }]
        },
        {
          "id" : "Provenance.policy",
          "path" : "Provenance.policy",
          "short" : "Policy or plan the activity was defined by",
          "definition" : "Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.",
          "comment" : "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.policy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.policy"
          }]
        },
        {
          "id" : "Provenance.location",
          "path" : "Provenance.location",
          "short" : "Where the activity occurred, if relevant",
          "definition" : "Where the activity occurred, if relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.location",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.location"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.location"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.location"
          }]
        },
        {
          "id" : "Provenance.reason",
          "path" : "Provenance.reason",
          "short" : "Reason the activity is occurring",
          "definition" : "The reason that the activity was taking place.",
          "comment" : "Plain text reasons can be sent in the \"text\" component with no codings.  Domains may wish to define a constrained terminology.  The reason for the resource's existence of the resource itself will be maintained on the resource, not here.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.reason",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceReason"
            }],
            "strength" : "extensible",
            "description" : "The reason the activity took place.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "unique(./reasonCode)"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.purposeOfEvent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          }]
        },
        {
          "id" : "Provenance.activity",
          "path" : "Provenance.activity",
          "short" : "Record activity",
          "definition" : "Indicates what action occurred to the referenced resource.",
          "comment" : "This should be captured at a sufficiently useful level of granularity.  For example \"suspended\" is more useful than \"updated\".  Domains will need to map the listed codes to their own state transitions and may wish to define additional domain-specific fine-grained codes.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.activity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceHistoryRecordActivity"
            }],
            "strength" : "extensible",
            "description" : "Types of activities that are relevant for tracking event history using Provenance.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-history-record-activity"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "Act.code"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          }]
        },
        {
          "id" : "Provenance.agent",
          "path" : "Provenance.agent",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "type"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Who was involved with change",
          "definition" : "Who was involved with change.",
          "comment" : "Generally the author will be specified.  Others are optional.",
          "requirements" : "An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Provenance.agent",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent"
          }]
        },
        {
          "id" : "Provenance.agent.id",
          "path" : "Provenance.agent.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent.extension",
          "path" : "Provenance.agent.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent.modifierExtension",
          "path" : "Provenance.agent.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.agent.type",
          "path" : "Provenance.agent.type",
          "short" : "How the agent participated",
          "definition" : "The participation the agent had with respect to the activity.",
          "comment" : "For example: author, performer, enterer, attester, etc.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceHistoryAgentType"
            }],
            "strength" : "extensible",
            "description" : "Types of roles that agents can play when tracking event history using Provenance.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-history-agent-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.function"
          },
          {
            "identity" : "rim",
            "map" : ".role"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.type"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          }]
        },
        {
          "id" : "Provenance.agent.role",
          "path" : "Provenance.agent.role",
          "short" : "What the agents role was",
          "definition" : "The function of the agent with respect to the activity. The security role enabling the agent with respect to the activity.",
          "comment" : "For example: doctor, nurse, clerk, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.agent.role",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentRole"
            }],
            "strength" : "example",
            "description" : "The role that a provenance agent played with respect to the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".typecode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.role"
          }]
        },
        {
          "id" : "Provenance.agent.who",
          "path" : "Provenance.agent.who",
          "short" : "Who participated",
          "definition" : "The individual, device or organization that participated in the event.",
          "comment" : "whoIdentity should be used when the agent is not a Resource type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.who",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          }]
        },
        {
          "id" : "Provenance.agent.onBehalfOf",
          "path" : "Provenance.agent.onBehalfOf",
          "short" : "Who the agent is representing",
          "definition" : "The individual, device, or organization for whom the change was made.",
          "comment" : "onBehalfOfIdentity should be used when the agent is not a Resource type.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.onBehalfOf",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
          }]
        },
        {
          "id" : "Provenance.agent:Author",
          "path" : "Provenance.agent",
          "sliceName" : "Author",
          "short" : "Author",
          "definition" : "Author.",
          "comment" : "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
          "requirements" : "An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent"
          }]
        },
        {
          "id" : "Provenance.agent:Author.id",
          "path" : "Provenance.agent.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent:Author.extension",
          "path" : "Provenance.agent.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent:Author.modifierExtension",
          "path" : "Provenance.agent.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.agent:Author.type",
          "path" : "Provenance.agent.type",
          "short" : "How the agent participated",
          "definition" : "The participation the agent had with respect to the activity.",
          "comment" : "For example: author, performer, enterer, attester, etc.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "patternCodeableConcept" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "code" : "AUT"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentType"
            }],
            "strength" : "extensible",
            "description" : "The type of participation that a provenance agent played with respect to the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-agent-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.function"
          },
          {
            "identity" : "rim",
            "map" : ".role"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.type"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          }]
        },
        {
          "id" : "Provenance.agent:Author.role",
          "path" : "Provenance.agent.role",
          "short" : "What the agents role was",
          "definition" : "The function of the agent with respect to the activity. The security role enabling the agent with respect to the activity.",
          "comment" : "For example: doctor, nurse, clerk, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.agent.role",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentRole"
            }],
            "strength" : "example",
            "description" : "The role that a provenance agent played with respect to the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".typecode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.role"
          }]
        },
        {
          "id" : "Provenance.agent:Author.who",
          "path" : "Provenance.agent.who",
          "short" : "Author Reference",
          "definition" : "Author Reference.",
          "comment" : "whoIdentity should be used when the agent is not a Resource type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.who",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          }]
        },
        {
          "id" : "Provenance.agent:Author.onBehalfOf",
          "path" : "Provenance.agent.onBehalfOf",
          "short" : "Who the agent is representing",
          "definition" : "The individual, device, or organization for whom the change was made.",
          "comment" : "onBehalfOfIdentity should be used when the agent is not a Resource type.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.onBehalfOf",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
          }]
        },
        {
          "id" : "Provenance.entity",
          "path" : "Provenance.entity",
          "short" : "An entity used in this activity",
          "definition" : "An entity used in this activity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.entity",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./subjectOf"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity"
          }]
        },
        {
          "id" : "Provenance.entity.id",
          "path" : "Provenance.entity.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.entity.extension",
          "path" : "Provenance.entity.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.entity.modifierExtension",
          "path" : "Provenance.entity.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.entity.role",
          "path" : "Provenance.entity.role",
          "short" : "derivation | revision | quotation | source | removal",
          "definition" : "How the entity was used during the activity.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.entity.role",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceEntityRole"
            }],
            "strength" : "required",
            "description" : "How an entity was used in an activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-entity-role|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./typeCode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.lifecycle"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.role"
          }]
        },
        {
          "id" : "Provenance.entity.what",
          "path" : "Provenance.entity.what",
          "short" : "Identity of entity",
          "definition" : "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
          "comment" : "whatIdentity should be used for entities that are not a Resource type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.entity.what",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./text/reference"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.reference"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.Identity"
          }]
        },
        {
          "id" : "Provenance.entity.agent",
          "path" : "Provenance.entity.agent",
          "short" : "Entity is attributed to this agent",
          "definition" : "The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity.",
          "comment" : "A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.entity.agent",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Provenance.agent:Author",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./author/role"
          }]
        },
        {
          "id" : "Provenance.signature",
          "path" : "Provenance.signature",
          "short" : "Signature on target",
          "definition" : "A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.signature",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Signature"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./signatureText"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Provenance",
          "path" : "Provenance",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Provenance.target",
          "path" : "Provenance.target",
          "short" : "Resource version",
          "definition" : "This points to the version of the resource that was created as a result of this historical record action.  Typically only a single resource will be referenced, but if the same action is performed to multiple resources in the context of a transaction, some systems may link multiple resource instances.",
          "comment" : "The reference SHALL be version-specific.",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.occurred[x]",
          "path" : "Provenance.occurred[x]",
          "definition" : "This indicates the time the resource action (creation, revision, deletion, etc.) occurred.",
          "comment" : "Both low and high will be set to the time the record event occurred.  (In a future version, this element will likely be a choice with dateTime so that multiple values aren't needed.).",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Provenance.reason",
          "path" : "Provenance.reason",
          "comment" : "Plain text reasons can be sent in the \"text\" component with no codings.  Domains may wish to define a constrained terminology.  The reason for the resource's existence of the resource itself will be maintained on the resource, not here.",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.activity",
          "path" : "Provenance.activity",
          "short" : "Record activity",
          "definition" : "Indicates what action occurred to the referenced resource.",
          "comment" : "This should be captured at a sufficiently useful level of granularity.  For example \"suspended\" is more useful than \"updated\".  Domains will need to map the listed codes to their own state transitions and may wish to define additional domain-specific fine-grained codes.",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceHistoryRecordActivity"
            }],
            "strength" : "extensible",
            "description" : "Types of activities that are relevant for tracking event history using Provenance.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-history-record-activity"
          }
        },
        {
          "id" : "Provenance.agent",
          "path" : "Provenance.agent",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "type"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Who was involved with change",
          "definition" : "Who was involved with change.",
          "comment" : "Generally the author will be specified.  Others are optional.",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent.type",
          "path" : "Provenance.agent.type",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceHistoryAgentType"
            }],
            "strength" : "extensible",
            "description" : "Types of roles that agents can play when tracking event history using Provenance.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-history-agent-type"
          }
        },
        {
          "id" : "Provenance.agent:Author",
          "path" : "Provenance.agent",
          "sliceName" : "Author",
          "short" : "Author",
          "definition" : "Author.",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent:Author.type",
          "path" : "Provenance.agent.type",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "patternCodeableConcept" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "code" : "AUT"
            }]
          },
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent:Author.who",
          "path" : "Provenance.agent.who",
          "short" : "Author Reference",
          "definition" : "Author Reference.",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cqf-questionnaire",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cqf-questionnaire",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 3
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "fhir"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-questionnaire",
      "version" : "4.0.1",
      "name" : "CQF-Questionnaire",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-05-30",
      "publisher" : "Health Level Seven, Inc. - CDS WG",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org/special/committees/dss"
        }]
      }],
      "description" : "A questionnaire with the ability to specify behavior associated with questions or groups of questions",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Questionnaire",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Questionnaire",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Questionnaire",
          "path" : "Questionnaire",
          "short" : "A questionnaire with the ability to specify behavior associated with questions or groups of questions",
          "definition" : "A CR (Clinical Reasoning) questionnaire is a questionnaire with the added ability to describe behavior associated with questions. For example, whether or not to display a particular question or group of questions, or automatically calculating the value of an answer based on the answers to previous questions.",
          "alias" : ["Form",
          "CRF",
          "Survey"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "que-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/Questionnaire"
          },
          {
            "key" : "que-2",
            "severity" : "error",
            "human" : "The link ids for groups and questions must be unique within the questionnaire",
            "expression" : "descendants().linkId.isDistinct()",
            "xpath" : "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Questionnaire"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          },
          {
            "identity" : "rim",
            "map" : "Observation[moodCode=DEF]"
          }]
        },
        {
          "id" : "Questionnaire.id",
          "path" : "Questionnaire.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Questionnaire.meta",
          "path" : "Questionnaire.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Questionnaire.implicitRules",
          "path" : "Questionnaire.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Questionnaire.language",
          "path" : "Questionnaire.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Questionnaire.text",
          "path" : "Questionnaire.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Questionnaire.contained",
          "path" : "Questionnaire.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.extension",
          "path" : "Questionnaire.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Questionnaire.extension:library",
          "path" : "Questionnaire.extension",
          "sliceName" : "library",
          "short" : "A library containing logic referenced by the questionnaire",
          "definition" : "A CQL or ELM library containing any logic referenced by the questionnaire.",
          "alias" : ["library"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-library"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Questionnaire.modifierExtension",
          "path" : "Questionnaire.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.url",
          "path" : "Questionnaire.url",
          "short" : "Canonical identifier for this questionnaire, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this questionnaire 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 at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.",
          "comment" : "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.",
          "requirements" : "…  This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier[scope=BUSN;reliability=ISS]"
          }]
        },
        {
          "id" : "Questionnaire.identifier",
          "path" : "Questionnaire.identifier",
          "short" : "Additional identifier for the questionnaire",
          "definition" : "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.version",
          "path" : "Questionnaire.version",
          "short" : "Business version of the questionnaire",
          "definition" : "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire 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" : "There may be different questionnaire 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 questionnaire with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Questionnaire.name",
          "path" : "Questionnaire.name",
          "short" : "Name for this questionnaire (computer friendly)",
          "definition" : "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.title",
          "path" : "Questionnaire.title",
          "short" : "Name for this questionnaire (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the questionnaire.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          },
          {
            "identity" : "rim",
            "map" : ".title"
          }]
        },
        {
          "id" : "Questionnaire.derivedFrom",
          "path" : "Questionnaire.derivedFrom",
          "short" : "Instantiates protocol or definition",
          "definition" : "The URL of a Questionnaire that this Questionnaire is based on.",
          "requirements" : "Allows a Questionnaire to be created based on another Questionnaire.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Questionnaire"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.derivedFrom"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DRIV].target[classCode=OBS, moodCode=DEFN]"
          }]
        },
        {
          "id" : "Questionnaire.status",
          "path" : "Questionnaire.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this questionnaire. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of questionnaires that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : ".status"
          }]
        },
        {
          "id" : "Questionnaire.experimental",
          "path" : "Questionnaire.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of questionnaires that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.subjectType",
          "path" : "Questionnaire.subjectType",
          "short" : "Resource that can be subject of QuestionnaireResponse",
          "definition" : "The types of subjects that can be the subject of responses created for the questionnaire.",
          "comment" : "If none are specified, then the subject is unlimited.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.subjectType",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ResourceType"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "One of the resource types defined as part of this version of FHIR.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject[x]"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
          }]
        },
        {
          "id" : "Questionnaire.date",
          "path" : "Questionnaire.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the questionnaire was published. 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 questionnaire changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Questionnaire.publisher",
          "path" : "Questionnaire.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the questionnaire.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. 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 questionnaire. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the questionnaire.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          }]
        },
        {
          "id" : "Questionnaire.contact",
          "path" : "Questionnaire.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=CALLBCK].role"
          }]
        },
        {
          "id" : "Questionnaire.description",
          "path" : "Questionnaire.description",
          "short" : "Natural language description of the questionnaire",
          "definition" : "A free text natural language description of the questionnaire from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the questionnaire was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire 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 questionnaire is presumed to be the predominant language in the place the questionnaire was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          }]
        },
        {
          "id" : "Questionnaire.useContext",
          "path" : "Questionnaire.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 questionnaire instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Questionnaire.jurisdiction",
          "path" : "Questionnaire.jurisdiction",
          "short" : "Intended jurisdiction for questionnaire (if applicable)",
          "definition" : "A legal or geographic region in which the questionnaire is intended to be used.",
          "comment" : "It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Questionnaire.purpose",
          "path" : "Questionnaire.purpose",
          "short" : "Why this questionnaire is defined",
          "definition" : "Explanation of why this questionnaire is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the questionnaire. 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 questionnaire.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode.text"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.copyright",
          "path" : "Questionnaire.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the questionnaire and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.approvalDate",
          "path" : "Questionnaire.approvalDate",
          "short" : "When the questionnaire was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.lastReviewDate",
          "path" : "Questionnaire.lastReviewDate",
          "short" : "When the questionnaire was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.effectivePeriod",
          "path" : "Questionnaire.effectivePeriod",
          "short" : "When the questionnaire is expected to be used",
          "definition" : "The period during which the questionnaire content was or is planned to be in active use.",
          "comment" : "The effective period for a questionnaire  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the questionnaire are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Questionnaire.code",
          "path" : "Questionnaire.code",
          "short" : "Concept that represents the overall questionnaire",
          "definition" : "An identifier for this question or group of questions in a particular terminology such as LOINC.",
          "requirements" : "Allows linking of the complete Questionnaire resources to formal terminologies.  It's common for \"panels\" of questions to be identified by a code.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireConcept"
            }],
            "strength" : "example",
            "description" : "Codes for questionnaires, groups and individual questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-questions"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".code"
          }]
        },
        {
          "id" : "Questionnaire.item",
          "path" : "Questionnaire.item",
          "short" : "Questions and sections within the Questionnaire",
          "definition" : "A particular question, question grouping or display text that is part of the questionnaire.",
          "comment" : "The content of the questionnaire is constructed from an ordered, hierarchical collection of items.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["que-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "que-1",
            "severity" : "error",
            "human" : "Group items must have nested items, display items cannot have nested items",
            "expression" : "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())",
            "xpath" : "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))"
          },
          {
            "key" : "que-3",
            "severity" : "error",
            "human" : "Display items cannot have a \"code\" asserted",
            "expression" : "type!='display' or code.empty()",
            "xpath" : "not(f:type/@value='display' and f:code)"
          },
          {
            "key" : "que-4",
            "severity" : "error",
            "human" : "A question cannot have both answerOption and answerValueSet",
            "expression" : "answerOption.empty() or answerValueSet.empty()",
            "xpath" : "not(f:answerValueSet and f:answerOption)"
          },
          {
            "key" : "que-5",
            "severity" : "error",
            "human" : "Only 'choice' and 'open-choice' items can have answerValueSet",
            "expression" : "(type ='choice' or type = 'open-choice' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())",
            "xpath" : "f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)"
          },
          {
            "key" : "que-6",
            "severity" : "error",
            "human" : "Required and repeat aren't permitted for display items",
            "expression" : "type!='display' or (required.empty() and repeats.empty())",
            "xpath" : "not(f:type/@value='display' and (f:required or f:repeats))"
          },
          {
            "key" : "que-8",
            "severity" : "error",
            "human" : "Initial values can't be specified for groups or display items",
            "expression" : "(type!='group' and type!='display') or initial.empty()",
            "xpath" : "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
          },
          {
            "key" : "que-9",
            "severity" : "error",
            "human" : "Read-only can't be specified for \"display\" items",
            "expression" : "type!='display' or readOnly.empty()",
            "xpath" : "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
          },
          {
            "key" : "que-10",
            "severity" : "error",
            "human" : "Maximum length can only be declared for simple question types",
            "expression" : "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()",
            "xpath" : "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)"
          },
          {
            "key" : "que-11",
            "severity" : "error",
            "human" : "If one or more answerOption is present, initial[x] must be missing",
            "expression" : "answerOption.empty() or initial.empty()",
            "xpath" : "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
          },
          {
            "key" : "que-12",
            "severity" : "error",
            "human" : "If there are more than one enableWhen, enableBehavior must be specified",
            "expression" : "enableWhen.count() > 2 implies enableBehavior.exists()",
            "xpath" : "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
          },
          {
            "key" : "que-13",
            "severity" : "error",
            "human" : "Can only have multiple initial values for repeating items",
            "expression" : "repeats=true or initial.count() <= 1",
            "xpath" : "f:repeats/@value='true' or count(f:initial)<=1"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]"
          }]
        },
        {
          "id" : "Questionnaire.item.id",
          "path" : "Questionnaire.item.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.extension",
          "path" : "Questionnaire.item.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.modifierExtension",
          "path" : "Questionnaire.item.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.item.linkId",
          "path" : "Questionnaire.item.linkId",
          "short" : "Unique id for item in questionnaire",
          "definition" : "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.",
          "comment" : "This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
          "requirements" : "[QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html#) does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.linkId",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".id"
          }]
        },
        {
          "id" : "Questionnaire.item.definition",
          "path" : "Questionnaire.item.definition",
          "short" : "ElementDefinition - details for the item",
          "definition" : "This element is a URI that refers to an [ElementDefinition](http://hl7.org/fhir/elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).",
          "comment" : "The uri refers to an ElementDefinition in a [StructureDefinition](http://hl7.org/fhir/structuredefinition.html#) and always starts with the [canonical URL](http://hl7.org/fhir/references.html#canonical) for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](http://hl7.org/fhir/element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.",
          "requirements" : "A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.definition",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=INST].target[classCode=OBS, moodCode=DEF]"
          }]
        },
        {
          "id" : "Questionnaire.item.code",
          "path" : "Questionnaire.item.code",
          "short" : "Corresponding concept for this item in a terminology",
          "definition" : "A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).",
          "comment" : "The value may come from the ElementDefinition referred to by .definition.",
          "requirements" : "Allows linking of groups of questions to formal terminologies.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "condition" : ["que-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireConcept"
            }],
            "strength" : "example",
            "description" : "Codes for questionnaires, groups and individual questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-questions"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".code"
          }]
        },
        {
          "id" : "Questionnaire.item.prefix",
          "path" : "Questionnaire.item.prefix",
          "short" : "E.g. \"1(a)\", \"2.5.3\"",
          "definition" : "A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.",
          "comment" : "These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed.  Typically, these won't be used for \"display\" items, though such use is not prohibited.  Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.",
          "requirements" : "Separating the label from the question text allows improved rendering.  Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.",
          "alias" : ["label"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.prefix",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Not supported"
          }]
        },
        {
          "id" : "Questionnaire.item.text",
          "path" : "Questionnaire.item.text",
          "short" : "Primary text for the item",
          "definition" : "The name of a section, the text of a question or text content for a display item.",
          "comment" : "When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading.  Group item instructions should be included as a display type item within the group.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".text"
          }]
        },
        {
          "id" : "Questionnaire.item.type",
          "path" : "Questionnaire.item.type",
          "short" : "group | display | boolean | decimal | integer | date | dateTime +",
          "definition" : "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).",
          "comment" : "Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.",
          "requirements" : "Defines the format in which the user is to be prompted for the answer.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireItemType"
            }],
            "strength" : "required",
            "description" : "Distinguishes groups from questions and display text and indicates data type for questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/item-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen",
          "path" : "Questionnaire.item.enableWhen",
          "short" : "Only allow data when",
          "definition" : "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",
          "comment" : "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true.  I.e. treat \"enableWhen\"s as being joined by an \"or\" clause.  This element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to.",
          "requirements" : "Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history.  Also allows conditional display of instructions or groups of questions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item.enableWhen",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "que-7",
            "severity" : "error",
            "human" : "If the operator is 'exists', the value must be a boolean",
            "expression" : "operator = 'exists' implies (answer is Boolean)",
            "xpath" : "f:operator/@value != 'exists' or exists(f:answerBoolean)"
          }],
          "isModifier" : true,
          "isModifierReason" : "If enableWhen is present and the condition evaluates to false, then the Questionnaire behaves as though the elements weren't actually present",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.id",
          "path" : "Questionnaire.item.enableWhen.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.extension",
          "path" : "Questionnaire.item.enableWhen.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.modifierExtension",
          "path" : "Questionnaire.item.enableWhen.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.question",
          "path" : "Questionnaire.item.enableWhen.question",
          "short" : "Question that determines whether item is enabled",
          "definition" : "The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.",
          "comment" : "If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the \"ancestor\" axis and then the \"preceding\" axis and then the \"following\" axis.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.enableWhen.question",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.operator",
          "path" : "Questionnaire.item.enableWhen.operator",
          "short" : "exists | = | != | > | < | >= | <=",
          "definition" : "Specifies the criteria by which the question is enabled.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.enableWhen.operator",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireItemOperator"
            }],
            "strength" : "required",
            "description" : "The criteria by which a question is enabled.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.enableWhen.answer[x]",
          "path" : "Questionnaire.item.enableWhen.answer[x]",
          "short" : "Value for question comparison based on operator",
          "definition" : "A value that the referenced question is tested using the specified operator in order for the item to be enabled.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.enableWhen.answer[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "time"
          },
          {
            "code" : "string"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "condition" : ["que-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireQuestionOption3"
            }],
            "strength" : "example",
            "description" : "Allowed values to answer questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-answers"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.enableBehavior",
          "path" : "Questionnaire.item.enableBehavior",
          "short" : "all | any",
          "definition" : "Controls how multiple enableWhen values are interpreted -  whether all or any must be true.",
          "comment" : "This element must be specified if more than one enableWhen value is provided.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.enableBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "condition" : ["que-12"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "EnableWhenBehavior"
            }],
            "strength" : "required",
            "description" : "Controls how multiple enableWhen values are interpreted -  whether all or any must be true.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.required",
          "path" : "Questionnaire.item.required",
          "short" : "Whether the item must be included in data results",
          "definition" : "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse.  If false, the item may be skipped when answering the questionnaire.",
          "comment" : "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true.  If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.required",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value",
          "condition" : ["que-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.repeats",
          "path" : "Questionnaire.item.repeats",
          "short" : "Whether the item may repeat",
          "definition" : "An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.",
          "comment" : "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse.  When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers).  Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.",
          "requirements" : "Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.repeats",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value",
          "condition" : ["que-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.readOnly",
          "path" : "Questionnaire.item.readOnly",
          "short" : "Don't allow human editing",
          "definition" : "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",
          "comment" : "The value of readOnly elements can be established by asserting  extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.",
          "requirements" : "Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it.  May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.readOnly",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "condition" : ["que-9"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.maxLength",
          "path" : "Questionnaire.item.maxLength",
          "short" : "No more than this many characters",
          "definition" : "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.",
          "comment" : "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.maxLength",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "integer"
          }],
          "condition" : ["que-10"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.answerValueSet",
          "path" : "Questionnaire.item.answerValueSet",
          "short" : "Valueset containing permitted answers",
          "definition" : "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.",
          "comment" : "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](http://hl7.org/fhir/loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.answerValueSet",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
          }],
          "condition" : ["que-4",
          "que-5"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption",
          "path" : "Questionnaire.item.answerOption",
          "short" : "Permitted answer",
          "definition" : "One of the permitted answers for a \"choice\" or \"open-choice\" question.",
          "comment" : "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item.answerOption",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["que-4",
          "que-5"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption.id",
          "path" : "Questionnaire.item.answerOption.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption.extension",
          "path" : "Questionnaire.item.answerOption.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption.modifierExtension",
          "path" : "Questionnaire.item.answerOption.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption.value[x]",
          "path" : "Questionnaire.item.answerOption.value[x]",
          "short" : "Answer value",
          "definition" : "A potential answer that's allowed as the answer to this question.",
          "comment" : "The data type of the value must agree with the item.type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.answerOption.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "integer"
          },
          {
            "code" : "date"
          },
          {
            "code" : "time"
          },
          {
            "code" : "string"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireQuestionOption"
            }],
            "strength" : "example",
            "description" : "Allowed values to answer questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-answers"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.answerOption.initialSelected",
          "path" : "Questionnaire.item.answerOption.initialSelected",
          "short" : "Whether option is selected by default",
          "definition" : "Indicates whether the answer value is selected when the list of possible answers is initially shown.",
          "comment" : "Use this instead of initial[v] if answerValueSet is present.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.answerOption.initialSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Only selected items explicitly marked to be selected",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.initial",
          "path" : "Questionnaire.item.initial",
          "short" : "Initial value(s) when item is first rendered",
          "definition" : "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.",
          "comment" : "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created.  Note that initial values can influence results.  The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.",
          "requirements" : "In some workflows, having defaults saves time.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item.initial",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["que-8",
          "que-13"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.initial.id",
          "path" : "Questionnaire.item.initial.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.initial.extension",
          "path" : "Questionnaire.item.initial.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Questionnaire.item.initial.modifierExtension",
          "path" : "Questionnaire.item.initial.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Questionnaire.item.initial.value[x]",
          "path" : "Questionnaire.item.initial.value[x]",
          "short" : "Actual value for initializing the question",
          "definition" : "The actual value to for an initial answer.",
          "comment" : "The type of the initial value must be consistent with the type of the item.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Questionnaire.item.initial.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "time"
          },
          {
            "code" : "string"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "Attachment"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuestionnaireQuestionOption2"
            }],
            "strength" : "example",
            "description" : "Allowed values to answer questions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/questionnaire-answers"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A - MIF rather than RIM level"
          }]
        },
        {
          "id" : "Questionnaire.item.item",
          "path" : "Questionnaire.item.item",
          "short" : "Nested questionnaire items",
          "definition" : "Text, questions and other groups to be nested beneath a question or group.",
          "comment" : "There is no specified limit to the depth of nesting.  However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.",
          "requirements" : "Reports can consist of complex nested groups.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Questionnaire.item.item",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Questionnaire.item",
          "condition" : ["que-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].target"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Questionnaire",
          "path" : "Questionnaire",
          "short" : "A questionnaire with the ability to specify behavior associated with questions or groups of questions",
          "definition" : "A CR (Clinical Reasoning) questionnaire is a questionnaire with the added ability to describe behavior associated with questions. For example, whether or not to display a particular question or group of questions, or automatically calculating the value of an answer based on the answers to previous questions.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Questionnaire.extension:library",
          "path" : "Questionnaire.extension",
          "sliceName" : "library",
          "short" : "A library containing logic referenced by the questionnaire",
          "definition" : "A CQL or ELM library containing any logic referenced by the questionnaire.",
          "alias" : ["library"],
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-library"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareablevalueset",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareablevalueset",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "vocab"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareablevalueset",
      "version" : "4.0.1",
      "name" : "Shareable ValueSet",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the value set metadata required by HL7 and other organizations that share and publish value sets",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "ValueSet",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/ValueSet",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "ValueSet",
          "path" : "ValueSet",
          "short" : "A set of codes drawn from one or more code systems",
          "definition" : "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](http://hl7.org/fhir/codesystem.html) definitions and their use in [coded elements](http://hl7.org/fhir/terminologies.html).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "vsd-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ValueSet"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.id",
          "path" : "ValueSet.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ValueSet.meta",
          "path" : "ValueSet.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ValueSet.implicitRules",
          "path" : "ValueSet.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "ValueSet.language",
          "path" : "ValueSet.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "ValueSet.text",
          "path" : "ValueSet.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "ValueSet.contained",
          "path" : "ValueSet.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.extension",
          "path" : "ValueSet.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.modifierExtension",
          "path" : "ValueSet.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.url",
          "path" : "ValueSet.url",
          "short" : "Canonical identifier for this value set, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this value set 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 at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the value set to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.identifier",
          "path" : "ValueSet.identifier",
          "short" : "Additional identifier for the value set (business identifier)",
          "definition" : "A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this value set outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ValueSet.version",
          "path" : "ValueSet.version",
          "short" : "Business version of the value set",
          "definition" : "The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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" : "There may be different value set 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 value set with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "ValueSet.name",
          "path" : "ValueSet.name",
          "short" : "Name for this value set (computer friendly)",
          "definition" : "A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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.A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name.",
          "requirements" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ValueSet.title",
          "path" : "ValueSet.title",
          "short" : "Name for this value set (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the value set.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "ValueSet.status",
          "path" : "ValueSet.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.",
          "comment" : "Allows filtering of value sets that are appropriate for use versus not.See also the [valueset-workflowStatus](http://hl7.org/fhir/extension-valueset-workflowstatus.html) extension for additional status information related to the editorial process.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.experimental",
          "path" : "ValueSet.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of value sets that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level value set.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "ValueSet.date",
          "path" : "ValueSet.date",
          "short" : "Date last changed",
          "definition" : "The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.publisher",
          "path" : "ValueSet.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the value set.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. 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 value set. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the value set.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "ValueSet.contact",
          "path" : "ValueSet.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "ValueSet.description",
          "path" : "ValueSet.description",
          "short" : "Natural language description of the value set",
          "definition" : "A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.",
          "comment" : "This description can be used to capture details such as why the value set was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the value set 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 value set is presumed to be the predominant language in the place the value set was created).The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description.",
          "alias" : ["Scope",
          "Purpose",
          "scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.useContext",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "ValueSet.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 value set instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "ValueSet.jurisdiction",
          "path" : "ValueSet.jurisdiction",
          "short" : "Intended jurisdiction for value set (if applicable)",
          "definition" : "A legal or geographic region in which the value set is intended to be used.",
          "comment" : "It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "ValueSet.immutable",
          "path" : "ValueSet.immutable",
          "short" : "Indicates whether or not any change to the content logical definition may occur",
          "definition" : "If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.",
          "comment" : "Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example \"All specializations of ACT in ActClassCode\" - Where there's no safe way to express the \"Purpose\" such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.immutable",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ValueSet.purpose",
          "path" : "ValueSet.purpose",
          "short" : "Why this value set is defined",
          "definition" : "Explanation of why this value set is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the value set. 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 value set.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ValueSet.copyright",
          "path" : "ValueSet.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.",
          "comment" : "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the value set and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "ValueSet.compose",
          "path" : "ValueSet.compose",
          "short" : "Content logical definition of the value set (CLD)",
          "definition" : "A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).",
          "alias" : ["Content Logical Definition",
          "CLD"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.compose.id",
          "path" : "ValueSet.compose.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.extension",
          "path" : "ValueSet.compose.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.modifierExtension",
          "path" : "ValueSet.compose.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.lockedDate",
          "path" : "ValueSet.compose.lockedDate",
          "short" : "Fixed date for references with no specified version (transitive)",
          "definition" : "The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.",
          "comment" : "With a defined lockedDate the value set is considered \"Locked\". Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.lockedDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.init"
          }]
        },
        {
          "id" : "ValueSet.compose.inactive",
          "path" : "ValueSet.compose.inactive",
          "short" : "Whether inactive codes are in the value set",
          "definition" : "Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).",
          "comment" : "Note that in the FHIR terminology framework, \"deprecated\" does not mean inactive, but in some code systems, e.g. LOINC, \"deprecated\" does mean inactive. Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active.\n\nThe Value Set Definition specification defines an ActiveOnly element, which is the reverse of this element e.g. (ValueSet.compose.inactive=FALSE) is the same as (VSD.ActiveOnly=TRUE).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.inactive",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "ValueSet.compose.include",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "ConceptSet"
          }],
          "path" : "ValueSet.compose.include",
          "short" : "Include one or more codes from a code system or other value set(s)",
          "definition" : "Include one or more codes from a code system or other value set(s).",
          "comment" : "All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.include",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vsd-1",
            "severity" : "error",
            "human" : "A value set include/exclude SHALL have a value set or a system",
            "expression" : "valueSet.exists() or system.exists()",
            "xpath" : "exists(f:valueSet) or exists(f:system)"
          },
          {
            "key" : "vsd-2",
            "severity" : "error",
            "human" : "A value set with concepts or filters SHALL include a system",
            "expression" : "(concept.exists() or filter.exists()) implies system.exists()",
            "xpath" : "not(exists(f:concept) or exists(f:filter)) or exists(f:system)"
          },
          {
            "key" : "vsd-3",
            "severity" : "error",
            "human" : "Cannot have both concept and filter",
            "expression" : "concept.empty() or filter.empty()",
            "xpath" : "not(exists(f:concept)) or not(exists(f:filter))"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.id",
          "path" : "ValueSet.compose.include.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.extension",
          "path" : "ValueSet.compose.include.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.modifierExtension",
          "path" : "ValueSet.compose.include.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.system",
          "path" : "ValueSet.compose.include.system",
          "short" : "The system the codes come from",
          "definition" : "An absolute URI which is the code system from which the selected codes come from.",
          "comment" : "If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "condition" : ["vsd-1",
          "vsd-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.version",
          "path" : "ValueSet.compose.include.version",
          "short" : "Specific version of the code system referred to",
          "definition" : "The version of the code system that the codes are selected from, or the special version '*' for all versions.",
          "comment" : "This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set might not be known until a context of use binds it to a particular version. The special value '*' means all versions; It is at server discretion regarding expansions and which versions must be supported.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "ConceptReference"
          }],
          "path" : "ValueSet.compose.include.concept",
          "short" : "A concept defined in the system",
          "definition" : "Specifies a concept to be included or excluded.",
          "comment" : "The list of concepts is considered ordered, though the order might not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.include.concept",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["vsd-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.id",
          "path" : "ValueSet.compose.include.concept.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.extension",
          "path" : "ValueSet.compose.include.concept.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.modifierExtension",
          "path" : "ValueSet.compose.include.concept.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.code",
          "path" : "ValueSet.compose.include.concept.code",
          "short" : "Code or expression from system",
          "definition" : "Specifies a code for the concept to be included or excluded.",
          "comment" : "Expressions are allowed if defined by the underlying code system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.concept.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.display",
          "path" : "ValueSet.compose.include.concept.display",
          "short" : "Text to display for this code for this value set in this valueset",
          "definition" : "The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.",
          "comment" : "The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.concept.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.designation",
          "path" : "ValueSet.compose.include.concept.designation",
          "short" : "Additional representations for this concept",
          "definition" : "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.",
          "comment" : "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](http://hl7.org/fhir/resource.html#language).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.include.concept.designation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.id",
          "path" : "ValueSet.compose.include.concept.designation.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.extension",
          "path" : "ValueSet.compose.include.concept.designation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.modifierExtension",
          "path" : "ValueSet.compose.include.concept.designation.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.language",
          "path" : "ValueSet.compose.include.concept.designation.language",
          "short" : "Human language of the designation",
          "definition" : "The language this designation is defined for.",
          "comment" : "In the absence of a language, the resource language applies.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.concept.designation.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.use",
          "path" : "ValueSet.compose.include.concept.designation.use",
          "short" : "Types of uses of designations",
          "definition" : "A code that represents types of uses of designations.",
          "comment" : "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.concept.designation.use",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ConceptDesignationUse"
            }],
            "strength" : "extensible",
            "description" : "Details of how a designation would be used.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/designation-use"
          }
        },
        {
          "id" : "ValueSet.compose.include.concept.designation.value",
          "path" : "ValueSet.compose.include.concept.designation.value",
          "short" : "The text value for this designation",
          "definition" : "The text value for this designation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.concept.designation.value",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.compose.include.filter",
          "path" : "ValueSet.compose.include.filter",
          "short" : "Select codes/concepts by their properties (including relationships)",
          "definition" : "Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.",
          "comment" : "Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.include.filter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "condition" : ["vsd-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.id",
          "path" : "ValueSet.compose.include.filter.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.extension",
          "path" : "ValueSet.compose.include.filter.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.modifierExtension",
          "path" : "ValueSet.compose.include.filter.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.property",
          "path" : "ValueSet.compose.include.filter.property",
          "short" : "A property/filter defined by the code system",
          "definition" : "A code that identifies a property or a filter defined in the code system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.filter.property",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.op",
          "path" : "ValueSet.compose.include.filter.op",
          "short" : "= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists",
          "definition" : "The kind of operation to perform as a part of the filter criteria.",
          "comment" : "In case filter.property represents a property of the system, the operation applies to the selected property. In case filter.property represents a filter of the system, the operation SHALL match one of the CodeSystem.filter.operator values.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.filter.op",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FilterOperator"
            }],
            "strength" : "required",
            "description" : "The kind of operation to perform as a part of a property based filter.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.filter.value",
          "path" : "ValueSet.compose.include.filter.value",
          "short" : "Code from the system, or regex criteria, or boolean value for exists",
          "definition" : "The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.",
          "comment" : "Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.compose.include.filter.value",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.include.valueSet",
          "path" : "ValueSet.compose.include.valueSet",
          "short" : "Select the contents included in this value set",
          "definition" : "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.",
          "comment" : "The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set](http://hl7.org/fhir/snomedct.html#implicit), or a direct reference to a value set definition using ValueSet.url. The reference might not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.include.valueSet",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
          }],
          "condition" : ["vsd-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.compose.exclude",
          "path" : "ValueSet.compose.exclude",
          "short" : "Explicitly exclude codes from a code system or other value sets",
          "definition" : "Exclude one or more codes from the value set based on code system filters and/or other value sets.",
          "comment" : "Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.compose.exclude",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#ValueSet.compose.include",
          "condition" : ["vsd-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.expansion",
          "path" : "ValueSet.expansion",
          "short" : "Used when the value set is \"expanded\"",
          "definition" : "A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.",
          "comment" : "Expansion is performed to produce a collection of codes that are ready to use for data entry or validation. Value set expansions are always considered to be stateless - they are a record of the set of codes in the value set at a point in time under a given set of conditions, and are not subject to ongoing maintenance.\n\nExpansion.parameter is  a simplified list of parameters - a subset of the features of the [Parameters](http://hl7.org/fhir/parameters.html) resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.id",
          "path" : "ValueSet.expansion.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.extension",
          "path" : "ValueSet.expansion.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.modifierExtension",
          "path" : "ValueSet.expansion.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.expansion.identifier",
          "path" : "ValueSet.expansion.identifier",
          "short" : "Identifies the value set expansion (business identifier)",
          "definition" : "An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.",
          "comment" : "Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.identifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.timestamp",
          "path" : "ValueSet.expansion.timestamp",
          "short" : "Time ValueSet expansion happened",
          "definition" : "The time at which the expansion was produced by the expanding system.",
          "comment" : "This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.timestamp",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.total",
          "path" : "ValueSet.expansion.total",
          "short" : "Total number of codes in the expansion",
          "definition" : "The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.",
          "comment" : "Paging only applies to flat expansions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.total",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "integer"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.offset",
          "path" : "ValueSet.expansion.offset",
          "short" : "Offset at which this resource starts",
          "definition" : "If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.",
          "comment" : "Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.offset",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "integer"
          }],
          "meaningWhenMissing" : "Paging is not being used",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.parameter",
          "path" : "ValueSet.expansion.parameter",
          "short" : "Parameter that controlled the expansion process",
          "definition" : "A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.",
          "comment" : "The server decides which parameters to include here, but at a minimum, the list SHOULD include all of the parameters that affect the $expand operation. If the expansion will be persisted all of these parameters SHALL be included. If the codeSystem on the server has a specified version then this version SHALL be provided as a parameter in the expansion (note that not all code systems have a version).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.expansion.parameter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.parameter.id",
          "path" : "ValueSet.expansion.parameter.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.parameter.extension",
          "path" : "ValueSet.expansion.parameter.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.parameter.modifierExtension",
          "path" : "ValueSet.expansion.parameter.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.expansion.parameter.name",
          "path" : "ValueSet.expansion.parameter.name",
          "short" : "Name as assigned by the client or server",
          "definition" : "Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.",
          "comment" : "The names are assigned at the discretion of the server.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.parameter.name",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.parameter.value[x]",
          "path" : "ValueSet.expansion.parameter.value[x]",
          "short" : "Value of the named parameter",
          "definition" : "The value of the parameter.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.parameter.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "code"
          },
          {
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains",
          "path" : "ValueSet.expansion.contains",
          "short" : "Codes in the value set",
          "definition" : "The codes that are contained in the value set expansion.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.expansion.contains",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vsd-6",
            "severity" : "error",
            "human" : "SHALL have a code or a display",
            "expression" : "code.exists() or display.exists()",
            "xpath" : "exists(f:code) or exists(f:display)"
          },
          {
            "key" : "vsd-9",
            "severity" : "error",
            "human" : "Must have a code if not abstract",
            "expression" : "code.exists() or abstract = true",
            "xpath" : "exists(f:code) or (f:abstract/@value = true())"
          },
          {
            "key" : "vsd-10",
            "severity" : "error",
            "human" : "Must have a system if a code is present",
            "expression" : "code.empty() or system.exists()",
            "xpath" : "exists(f:system) or not(exists(f:code))"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.id",
          "path" : "ValueSet.expansion.contains.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.contains.extension",
          "path" : "ValueSet.expansion.contains.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ValueSet.expansion.contains.modifierExtension",
          "path" : "ValueSet.expansion.contains.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.expansion.contains.system",
          "path" : "ValueSet.expansion.contains.system",
          "short" : "System value for the code",
          "definition" : "An absolute URI which is the code system in which the code for this item in the expansion is defined.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.abstract",
          "path" : "ValueSet.expansion.contains.abstract",
          "short" : "If user cannot select this entry",
          "definition" : "If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.",
          "comment" : "This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.abstract",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "If this is not populated, systems can assume that the concept it not abstract. This SHALL always be populated for abstract concepts",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.inactive",
          "path" : "ValueSet.expansion.contains.inactive",
          "short" : "If concept is inactive in the code system",
          "definition" : "If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).",
          "comment" : "This should only have a value if the concept is inactive.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.inactive",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.version",
          "path" : "ValueSet.expansion.contains.version",
          "short" : "Version in which this code/display is defined",
          "definition" : "The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "The exact value of the version string is specified by the system from which the code is derived.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.code",
          "path" : "ValueSet.expansion.contains.code",
          "short" : "Code - if blank, this is not a selectable code",
          "definition" : "The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "condition" : ["vsd-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.display",
          "path" : "ValueSet.expansion.contains.display",
          "short" : "User display for the concept",
          "definition" : "The recommended display for this item in the expansion.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ValueSet.expansion.contains.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["vsd-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.designation",
          "path" : "ValueSet.expansion.contains.designation",
          "short" : "Additional representations for this item",
          "definition" : "Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.",
          "comment" : "The designations provided must be based on the value set and code system definitions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.expansion.contains.designation",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#ValueSet.compose.include.concept.designation",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ValueSet.expansion.contains.contains",
          "path" : "ValueSet.expansion.contains.contains",
          "short" : "Codes contained under this entry",
          "definition" : "Other codes and entries contained under this entry in the hierarchy.",
          "comment" : "If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ValueSet.expansion.contains.contains",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#ValueSet.expansion.contains",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "ValueSet",
          "path" : "ValueSet",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "ValueSet.url",
          "path" : "ValueSet.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "ValueSet.version",
          "path" : "ValueSet.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ValueSet.name",
          "path" : "ValueSet.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ValueSet.status",
          "path" : "ValueSet.status",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ValueSet.experimental",
          "path" : "ValueSet.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "ValueSet.publisher",
          "path" : "ValueSet.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "ValueSet.description",
          "path" : "ValueSet.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/picoelement",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "picoelement",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 0
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/picoelement",
      "version" : "4.0.1",
      "name" : "PICO Element Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-10-31",
      "publisher" : "Health Level Seven, Inc. - Clinical Decision Support Workgroup",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/dss/index.cfm"
        }]
      }],
      "description" : "Explanation of what this profile contains/is for.",
      "purpose" : "Need to be able to define and reuse the definition of individual elements of a research question.",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "EvidenceVariable",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/EvidenceVariable",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "EvidenceVariable",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "0;0"
          }],
          "path" : "EvidenceVariable",
          "short" : "A population, intervention, or exposure definition",
          "definition" : "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about.",
          "comment" : "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "evv-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "EvidenceVariable.id",
          "path" : "EvidenceVariable.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.meta",
          "path" : "EvidenceVariable.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.implicitRules",
          "path" : "EvidenceVariable.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.language",
          "path" : "EvidenceVariable.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "EvidenceVariable.text",
          "path" : "EvidenceVariable.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "EvidenceVariable.contained",
          "path" : "EvidenceVariable.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "EvidenceVariable.extension",
          "path" : "EvidenceVariable.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "EvidenceVariable.modifierExtension",
          "path" : "EvidenceVariable.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "EvidenceVariable.url",
          "path" : "EvidenceVariable.url",
          "short" : "Canonical identifier for this evidence variable, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this evidence variable 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 at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the evidence variable to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "EvidenceVariable.identifier",
          "path" : "EvidenceVariable.identifier",
          "short" : "Additional identifier for the evidence variable",
          "definition" : "A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence variable outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "EvidenceVariable.version",
          "path" : "EvidenceVariable.version",
          "short" : "Business version of the evidence variable",
          "definition" : "The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different evidence variable 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 evidence variable with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "EvidenceVariable.name",
          "path" : "EvidenceVariable.name",
          "short" : "Name for this evidence variable (computer friendly)",
          "definition" : "A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.title",
          "path" : "EvidenceVariable.title",
          "short" : "Name for this evidence variable (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the evidence variable.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "EvidenceVariable.shortTitle",
          "path" : "EvidenceVariable.shortTitle",
          "short" : "Title for use in informal contexts",
          "definition" : "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.",
          "requirements" : "Need to be able to reference the content by a short description, but still provide a longer, more formal title for the content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.shortTitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.subtitle",
          "path" : "EvidenceVariable.subtitle",
          "short" : "Subordinate title of the EvidenceVariable",
          "definition" : "An explanatory or alternate title for the EvidenceVariable giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.status",
          "path" : "EvidenceVariable.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this evidence variable. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of evidence variables that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "EvidenceVariable.date",
          "path" : "EvidenceVariable.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the evidence variable was published. 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 evidence variable changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence variable. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "EvidenceVariable.publisher",
          "path" : "EvidenceVariable.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the evidence variable.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the evidence variable is the organization or individual primarily responsible for the maintenance and upkeep of the evidence variable. 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 evidence variable. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the evidence variable.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "EvidenceVariable.contact",
          "path" : "EvidenceVariable.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "EvidenceVariable.description",
          "path" : "EvidenceVariable.description",
          "short" : "Natural language description of the evidence variable",
          "definition" : "A free text natural language description of the evidence variable from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the evidence variable was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence variable 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 evidence variable is presumed to be the predominant language in the place the evidence variable was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "EvidenceVariable.note",
          "path" : "EvidenceVariable.note",
          "short" : "Used for footnotes or explanatory notes",
          "definition" : "A human-readable string to clarify or explain concepts about the resource.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.useContext",
          "path" : "EvidenceVariable.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 evidence variable instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "EvidenceVariable.jurisdiction",
          "path" : "EvidenceVariable.jurisdiction",
          "short" : "Intended jurisdiction for evidence variable (if applicable)",
          "definition" : "A legal or geographic region in which the evidence variable is intended to be used.",
          "comment" : "It may be possible for the evidence variable to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "EvidenceVariable.copyright",
          "path" : "EvidenceVariable.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the evidence variable and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "EvidenceVariable.approvalDate",
          "path" : "EvidenceVariable.approvalDate",
          "short" : "When the evidence variable was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "EvidenceVariable.lastReviewDate",
          "path" : "EvidenceVariable.lastReviewDate",
          "short" : "When the evidence variable was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "EvidenceVariable.effectivePeriod",
          "path" : "EvidenceVariable.effectivePeriod",
          "short" : "When the evidence variable is expected to be used",
          "definition" : "The period during which the evidence variable content was or is planned to be in active use.",
          "comment" : "The effective period for a evidence variable  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the evidence variable are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "EvidenceVariable.topic",
          "path" : "EvidenceVariable.topic",
          "short" : "The category of the EvidenceVariable, such as Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the EvidenceVariable so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          }
        },
        {
          "id" : "EvidenceVariable.author",
          "path" : "EvidenceVariable.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "EvidenceVariable.editor",
          "path" : "EvidenceVariable.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.reviewer",
          "path" : "EvidenceVariable.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "EvidenceVariable.endorser",
          "path" : "EvidenceVariable.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "EvidenceVariable.relatedArtifact",
          "path" : "EvidenceVariable.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "EvidenceVariables must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.type",
          "path" : "EvidenceVariable.type",
          "short" : "dichotomous | continuous | descriptive",
          "definition" : "The type of evidence element, a population, an exposure, or an outcome.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "EvidenceVariableType"
            }],
            "strength" : "required",
            "description" : "The possible types of variables for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/variable-type|4.0.1"
          }
        },
        {
          "id" : "EvidenceVariable.characteristic",
          "path" : "EvidenceVariable.characteristic",
          "short" : "What defines the members of the evidence element",
          "definition" : "A characteristic that defines the members of the evidence element. Multiple characteristics are applied with \"and\" semantics.",
          "comment" : "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.characteristic",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.characteristic.id",
          "path" : "EvidenceVariable.characteristic.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.extension",
          "path" : "EvidenceVariable.characteristic.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.modifierExtension",
          "path" : "EvidenceVariable.characteristic.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.description",
          "path" : "EvidenceVariable.characteristic.description",
          "short" : "Natural language description of the characteristic",
          "definition" : "A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.",
          "requirements" : "Need to be able to describe characteristics in natural language so that end users can understand the criteria.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.characteristic.definition[x]",
          "path" : "EvidenceVariable.characteristic.definition[x]",
          "short" : "What code or expression defines members?",
          "definition" : "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).",
          "requirements" : "Need to be able to define members in simple codes when the membership aligns well with terminology, with common criteria such as observations in a value set or lab tests within a year, or with expression language to support criteria that do not fit in the above.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.definition[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          },
          {
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition"]
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "TriggerDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "EvidenceVariable.characteristic.usageContext",
          "path" : "EvidenceVariable.characteristic.usageContext",
          "short" : "What code/value pairs define members?",
          "definition" : "Use UsageContext to define the members of the population, such as Age Ranges, Genders, Settings.",
          "requirements" : "Need to be able to define members more structurally when more information can be communicated such as age range.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "EvidenceVariable.characteristic.usageContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.characteristic.exclude",
          "path" : "EvidenceVariable.characteristic.exclude",
          "short" : "Whether the characteristic includes or excludes members",
          "definition" : "When true, members with this characteristic are excluded from the element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.exclude",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "False",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.characteristic.participantEffective[x]",
          "path" : "EvidenceVariable.characteristic.participantEffective[x]",
          "short" : "What time period do participants cover",
          "definition" : "Indicates what effective period the study covers.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.participantEffective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.characteristic.timeFromStart",
          "path" : "EvidenceVariable.characteristic.timeFromStart",
          "short" : "Observation time from study start",
          "definition" : "Indicates duration from the participant's study entry.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.timeFromStart",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "EvidenceVariable.characteristic.groupMeasure",
          "path" : "EvidenceVariable.characteristic.groupMeasure",
          "short" : "mean | median | mean-of-mean | mean-of-median | median-of-mean | median-of-median",
          "definition" : "Indicates how elements are aggregated within the study effective period.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "EvidenceVariable.characteristic.groupMeasure",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GroupMeasure"
            }],
            "strength" : "required",
            "description" : "Possible group measure aggregates (E.g. Mean, Median).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
          }
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "EvidenceVariable",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "0;0"
          }],
          "path" : "EvidenceVariable",
          "comment" : "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
          "min" : 0,
          "max" : "*",
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "EvidenceVariable.identifier",
          "path" : "EvidenceVariable.identifier",
          "short" : "Additional identifier for the evidence variable",
          "definition" : "A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence variable outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Identifier"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "EvidenceVariable.title",
          "path" : "EvidenceVariable.title",
          "short" : "Name for this evidence variable (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the evidence variable.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "EvidenceVariable.shortTitle",
          "path" : "EvidenceVariable.shortTitle",
          "short" : "Title for use in informal contexts",
          "definition" : "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.",
          "requirements" : "Need to be able to reference the content by a short description, but still provide a longer, more formal title for the content.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "EvidenceVariable.date",
          "path" : "EvidenceVariable.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the evidence variable was published. 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 evidence variable changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence variable. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "EvidenceVariable.description",
          "path" : "EvidenceVariable.description",
          "short" : "Natural language description of the evidence variable",
          "definition" : "A free text natural language description of the evidence variable from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the evidence variable was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence variable 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 evidence variable is presumed to be the predominant language in the place the evidence variable was created).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "EvidenceVariable.note",
          "path" : "EvidenceVariable.note",
          "short" : "Used for footnotes or explanatory notes",
          "definition" : "A human-readable string to clarify or explain concepts about the resource.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }]
        },
        {
          "id" : "EvidenceVariable.type",
          "path" : "EvidenceVariable.type",
          "short" : "dichotomous | continuous | descriptive",
          "definition" : "The type of evidence element, a population, an exposure, or an outcome.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic",
          "path" : "EvidenceVariable.characteristic",
          "short" : "What defines the members of the evidence element",
          "definition" : "A characteristic that defines the members of the evidence element. Multiple characteristics are applied with \"and\" semantics.",
          "comment" : "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
          "min" : 1,
          "max" : "*"
        },
        {
          "id" : "EvidenceVariable.characteristic.description",
          "path" : "EvidenceVariable.characteristic.description",
          "short" : "Natural language description of the characteristic",
          "definition" : "A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.",
          "requirements" : "Need to be able to describe characteristics in natural language so that end users can understand the criteria.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.definition[x]",
          "path" : "EvidenceVariable.characteristic.definition[x]",
          "short" : "What code or expression defines members?",
          "definition" : "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).",
          "requirements" : "Need to be able to define members in simple codes when the membership aligns well with terminology, with common criteria such as observations in a value set or lab tests within a year, or with expression language to support criteria that do not fit in the above.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          },
          {
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition"]
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "TriggerDefinition"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.usageContext",
          "path" : "EvidenceVariable.characteristic.usageContext",
          "short" : "What code/value pairs define members?",
          "definition" : "Use UsageContext to define the members of the population, such as Age Ranges, Genders, Settings.",
          "requirements" : "Need to be able to define members more structurally when more information can be communicated such as age range.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "UsageContext"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.exclude",
          "path" : "EvidenceVariable.characteristic.exclude",
          "short" : "Whether the characteristic includes or excludes members",
          "definition" : "When true, members with this characteristic are excluded from the element.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.participantEffective[x]",
          "path" : "EvidenceVariable.characteristic.participantEffective[x]",
          "short" : "What time period do participants cover",
          "definition" : "Indicates what effective period the study covers.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Timing"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.timeFromStart",
          "path" : "EvidenceVariable.characteristic.timeFromStart",
          "short" : "Observation time from study start",
          "definition" : "Indicates duration from the participant's study entry.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Duration"
          }]
        },
        {
          "id" : "EvidenceVariable.characteristic.groupMeasure",
          "path" : "EvidenceVariable.characteristic.groupMeasure",
          "short" : "mean | median | mean-of-mean | mean-of-median | median-of-mean | median-of-median",
          "definition" : "Indicates how elements are aggregated within the study effective period.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareablecodesystem",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareablecodesystem",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "vocab"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareablecodesystem",
      "version" : "4.0.1",
      "name" : "Shareable CodeSystem",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the value set metadata required by HL7 and other organizations that share and publish value sets",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "CodeSystem",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/CodeSystem",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "CodeSystem",
          "path" : "CodeSystem",
          "short" : "Declares the existence of and describes a code system or code system supplement",
          "definition" : "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "csd-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/CodeSystem"
          },
          {
            "key" : "csd-1",
            "severity" : "error",
            "human" : "Within a code system definition, all the codes SHALL be unique",
            "expression" : "concept.code.combine($this.descendants().concept.code).isDistinct()",
            "xpath" : "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)",
            "source" : "http://hl7.org/fhir/StructureDefinition/CodeSystem"
          },
          {
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.id",
          "path" : "CodeSystem.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.meta",
          "path" : "CodeSystem.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.implicitRules",
          "path" : "CodeSystem.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.language",
          "path" : "CodeSystem.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "CodeSystem.text",
          "path" : "CodeSystem.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "CodeSystem.contained",
          "path" : "CodeSystem.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.extension",
          "path" : "CodeSystem.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.modifierExtension",
          "path" : "CodeSystem.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.url",
          "path" : "CodeSystem.url",
          "short" : "Canonical identifier for this code system, represented as a URI (globally unique) (Coding.system)",
          "definition" : "An absolute URI that is used to identify this code system 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 at which an authoritative instance of this code system is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the code system is stored on different servers. This is used in [Coding](http://hl7.org/fhir/datatypes.html#Coding).system.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the code system to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "CodeSystem.identifier",
          "path" : "CodeSystem.identifier",
          "short" : "Additional identifier for the code system (business identifier)",
          "definition" : "A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this code system outside of FHIR, where it is not possible to use the logical URI.  Note that HL7 defines at least three identifiers for many of its code systems - the FHIR canonical URL, the OID and the V2 Table 0396 mnemonic code.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "CodeSystem.version",
          "path" : "CodeSystem.version",
          "short" : "Business version of the code system (Coding.version)",
          "definition" : "The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system 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. This is used in [Coding](http://hl7.org/fhir/datatypes.html#Coding).version.",
          "comment" : "There may be different code system 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 code system with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "CodeSystem.name",
          "path" : "CodeSystem.name",
          "short" : "Name for this code system (computer friendly)",
          "definition" : "A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.title",
          "path" : "CodeSystem.title",
          "short" : "Name for this code system (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the code system.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "CodeSystem.status",
          "path" : "CodeSystem.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The date (and optionally time) when the code system resource was created or revised.",
          "comment" : "Allows filtering of code systems that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.experimental",
          "path" : "CodeSystem.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of code systems that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level code system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "CodeSystem.date",
          "path" : "CodeSystem.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the code system was published. 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 code system changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the code system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "CodeSystem.publisher",
          "path" : "CodeSystem.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the code system.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. 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 code system. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the code system.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "CodeSystem.contact",
          "path" : "CodeSystem.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "CodeSystem.description",
          "path" : "CodeSystem.description",
          "short" : "Natural language description of the code system",
          "definition" : "A free text natural language description of the code system from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the code system was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the code system 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 code system is presumed to be the predominant language in the place the code system was created).",
          "alias" : ["Scope",
          "Purpose",
          "scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.useContext",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "CodeSystem.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 code system instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "CodeSystem.jurisdiction",
          "path" : "CodeSystem.jurisdiction",
          "short" : "Intended jurisdiction for code system (if applicable)",
          "definition" : "A legal or geographic region in which the code system is intended to be used.",
          "comment" : "It may be possible for the code system to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "CodeSystem.purpose",
          "path" : "CodeSystem.purpose",
          "short" : "Why this code system is defined",
          "definition" : "Explanation of why this code system is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the code system. 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 code system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "CodeSystem.copyright",
          "path" : "CodeSystem.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.",
          "comment" : "... Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the code system and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "CodeSystem.caseSensitive",
          "path" : "CodeSystem.caseSensitive",
          "short" : "If code comparison is case sensitive",
          "definition" : "If code comparison is case sensitive when codes within this system are compared to each other.",
          "comment" : "If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.caseSensitive",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.valueSet",
          "path" : "CodeSystem.valueSet",
          "short" : "Canonical reference to the value set with entire code system",
          "definition" : "Canonical reference to the value set that contains the entire code system.",
          "comment" : "The definition of the value set SHALL include all codes from this code system and only codes from this code system, and it SHALL be immutable.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.valueSet",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.hierarchyMeaning",
          "path" : "CodeSystem.hierarchyMeaning",
          "short" : "grouped-by | is-a | part-of | classified-with",
          "definition" : "The meaning of the hierarchy of concepts as represented in this resource.",
          "comment" : "Note that other representations might have a different hierarchy or none at all, and represent the information using properties.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.hierarchyMeaning",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CodeSystemHierarchyMeaning"
            }],
            "strength" : "required",
            "description" : "The meaning of the hierarchy of concepts in a code system.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning|4.0.1"
          }
        },
        {
          "id" : "CodeSystem.compositional",
          "path" : "CodeSystem.compositional",
          "short" : "If code system defines a compositional grammar",
          "definition" : "The code system defines a compositional (post-coordination) grammar.",
          "comment" : "Note that the code system resource does not define what the compositional grammar is, only whether or not there is one.",
          "alias" : ["grammar"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.compositional",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.versionNeeded",
          "path" : "CodeSystem.versionNeeded",
          "short" : "If definitions are not stable",
          "definition" : "This flag is used to signify that the code system does not commit to concept permanence across versions. If true, a version must be specified when referencing this code system.",
          "comment" : "Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'.\n\nMost code systems occasionally refine the displays defined for concepts between versions. Contexts in which the concept display values are validated may require that the version be specified for some code systems irrespective of the value of this property.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.versionNeeded",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.content",
          "path" : "CodeSystem.content",
          "short" : "not-present | example | fragment | complete | supplement",
          "definition" : "The extent of the content of the code system (the concepts and codes it defines) are represented in this resource instance.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.content",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CodeSystemContentMode"
            }],
            "strength" : "required",
            "description" : "The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1"
          }
        },
        {
          "id" : "CodeSystem.supplements",
          "path" : "CodeSystem.supplements",
          "short" : "Canonical URL of Code System this adds designations and properties to",
          "definition" : "The canonical URL of the code system that this code system supplement is adding designations and properties to.",
          "comment" : "The most common use of a code system supplement is to add additional language support.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.supplements",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CodeSystem"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.count",
          "path" : "CodeSystem.count",
          "short" : "Total concepts in the code system",
          "definition" : "The total number of concepts defined by the code system. Where the code system has a compositional grammar, the basis of this count is defined by the system steward.",
          "comment" : "The count of concepts defined in this resource cannot be more than this value but may be less for several reasons - see the content element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.count",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "unsignedInt"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.filter",
          "path" : "CodeSystem.filter",
          "short" : "Filter that can be used in a value set",
          "definition" : "A filter that can be used in a value set compose statement when selecting concepts using a filter.",
          "comment" : "Note that filters defined in code systems usually require custom code on the part of any terminology engine that will make them available for use in value set filters. For this reason, they are generally only seen in high value published terminologies.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.filter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.filter.id",
          "path" : "CodeSystem.filter.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.filter.extension",
          "path" : "CodeSystem.filter.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.filter.modifierExtension",
          "path" : "CodeSystem.filter.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.filter.code",
          "path" : "CodeSystem.filter.code",
          "short" : "Code that identifies the filter",
          "definition" : "The code that identifies this filter when it is used as a filter in [ValueSet](http://hl7.org/fhir/valueset.html#).compose.include.filter.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.filter.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.filter.description",
          "path" : "CodeSystem.filter.description",
          "short" : "How or why the filter is used",
          "definition" : "A description of how or why the filter is used.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.filter.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.filter.operator",
          "path" : "CodeSystem.filter.operator",
          "short" : "= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists",
          "definition" : "A list of operators that can be used with the filter.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.filter.operator",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FilterOperator"
            }],
            "strength" : "required",
            "description" : "The kind of operation to perform as a part of a property based filter.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
          }
        },
        {
          "id" : "CodeSystem.filter.value",
          "path" : "CodeSystem.filter.value",
          "short" : "What to use for the value",
          "definition" : "A description of what the value for the filter should be.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.filter.value",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.property",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "Property"
          }],
          "path" : "CodeSystem.property",
          "short" : "Additional information supplied about each concept",
          "definition" : "A property defines an additional slot through which additional information can be provided about a concept.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.property",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.property.id",
          "path" : "CodeSystem.property.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.property.extension",
          "path" : "CodeSystem.property.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.property.modifierExtension",
          "path" : "CodeSystem.property.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.property.code",
          "path" : "CodeSystem.property.code",
          "short" : "Identifies the property on the concepts, and when referred to in operations",
          "definition" : "A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.property.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.property.uri",
          "path" : "CodeSystem.property.uri",
          "short" : "Formal identifier for the property",
          "definition" : "Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](http://hl7.org/fhir/codesystem-concept-properties.html) code system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.property.uri",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.property.description",
          "path" : "CodeSystem.property.description",
          "short" : "Why the property is defined, and/or what it conveys",
          "definition" : "A description of the property- why it is defined, and how its value might be used.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.property.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "CodeSystem.property.type",
          "path" : "CodeSystem.property.type",
          "short" : "code | Coding | string | integer | boolean | dateTime | decimal",
          "definition" : "The type of the property value. Properties of type \"code\" contain a code defined by the code system (e.g. a reference to another defined concept).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.property.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PropertyType"
            }],
            "strength" : "required",
            "description" : "The type of a property value.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1"
          }
        },
        {
          "id" : "CodeSystem.concept",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "ConceptDefinition"
          }],
          "path" : "CodeSystem.concept",
          "short" : "Concepts in the code system",
          "definition" : "Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meanings of the hierarchical relationships are.",
          "comment" : "If this is empty, it means that the code system resource does not represent the content of the code system.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.concept",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.id",
          "path" : "CodeSystem.concept.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.extension",
          "path" : "CodeSystem.concept.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.modifierExtension",
          "path" : "CodeSystem.concept.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.concept.code",
          "path" : "CodeSystem.concept.code",
          "short" : "Code that identifies concept",
          "definition" : "A code - a text symbol - that uniquely identifies the concept within the code system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.display",
          "path" : "CodeSystem.concept.display",
          "short" : "Text to display to the user",
          "definition" : "A human readable string that is the recommended default way to present this concept to a user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.definition",
          "path" : "CodeSystem.concept.definition",
          "short" : "Formal definition",
          "definition" : "The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.definition",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.designation",
          "path" : "CodeSystem.concept.designation",
          "short" : "Additional representations for the concept",
          "definition" : "Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.",
          "comment" : "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](http://hl7.org/fhir/resource.html#language).",
          "requirements" : "Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.concept.designation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.designation.id",
          "path" : "CodeSystem.concept.designation.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.designation.extension",
          "path" : "CodeSystem.concept.designation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.designation.modifierExtension",
          "path" : "CodeSystem.concept.designation.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.concept.designation.language",
          "path" : "CodeSystem.concept.designation.language",
          "short" : "Human language of the designation",
          "definition" : "The language this designation is defined for.",
          "comment" : "In the absence of a language, the resource language applies.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.designation.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "CodeSystem.concept.designation.use",
          "path" : "CodeSystem.concept.designation.use",
          "short" : "Details how this designation would be used",
          "definition" : "A code that details how this designation would be used.",
          "comment" : "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.designation.use",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ConceptDesignationUse"
            }],
            "strength" : "extensible",
            "description" : "Details of how a designation would be used.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/designation-use"
          }
        },
        {
          "id" : "CodeSystem.concept.designation.value",
          "path" : "CodeSystem.concept.designation.value",
          "short" : "The text value for this designation",
          "definition" : "The text value for this designation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.designation.value",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.property",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "ConceptProperty"
          }],
          "path" : "CodeSystem.concept.property",
          "short" : "Property value for the concept",
          "definition" : "A property value for this concept.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.concept.property",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.property.id",
          "path" : "CodeSystem.concept.property.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.property.extension",
          "path" : "CodeSystem.concept.property.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "CodeSystem.concept.property.modifierExtension",
          "path" : "CodeSystem.concept.property.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.concept.property.code",
          "path" : "CodeSystem.concept.property.code",
          "short" : "Reference to CodeSystem.property.code",
          "definition" : "A code that is a reference to CodeSystem.property.code.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.property.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.property.value[x]",
          "path" : "CodeSystem.concept.property.value[x]",
          "short" : "Value of the property for this concept",
          "definition" : "The value of this property.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeSystem.concept.property.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "string"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "CodeSystem.concept.concept",
          "path" : "CodeSystem.concept.concept",
          "short" : "Child Concepts (is-a/contains/categorizes)",
          "definition" : "Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeSystem.concept.concept",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#CodeSystem.concept",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "CodeSystem",
          "path" : "CodeSystem",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "CodeSystem.url",
          "path" : "CodeSystem.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "CodeSystem.version",
          "path" : "CodeSystem.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "CodeSystem.name",
          "path" : "CodeSystem.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "CodeSystem.status",
          "path" : "CodeSystem.status",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.experimental",
          "path" : "CodeSystem.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "CodeSystem.publisher",
          "path" : "CodeSystem.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "CodeSystem.description",
          "path" : "CodeSystem.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "CodeSystem.caseSensitive",
          "path" : "CodeSystem.caseSensitive",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "CodeSystem.concept",
          "path" : "CodeSystem.concept",
          "min" : 1,
          "max" : "*"
        },
        {
          "id" : "CodeSystem.concept.code",
          "path" : "CodeSystem.concept.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }]
        },
        {
          "id" : "CodeSystem.concept.display",
          "path" : "CodeSystem.concept.display",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "CodeSystem.concept.definition",
          "path" : "CodeSystem.concept.definition",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "CodeSystem.concept.concept",
          "path" : "CodeSystem.concept.concept",
          "min" : 0,
          "max" : "*",
          "contentReference" : "#CodeSystem.concept"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cdshooksguidanceresponse",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cdshooksguidanceresponse",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cdshooksguidanceresponse",
      "version" : "4.0.1",
      "name" : "CDS Hooks GuidanceResponse",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Defines a GuidanceResponse that represents the response container for a CDS Hooks response",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "GuidanceResponse",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/GuidanceResponse",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "GuidanceResponse",
          "path" : "GuidanceResponse",
          "short" : "The formal response to a guidance request",
          "definition" : "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          }]
        },
        {
          "id" : "GuidanceResponse.id",
          "path" : "GuidanceResponse.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "GuidanceResponse.meta",
          "path" : "GuidanceResponse.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "GuidanceResponse.implicitRules",
          "path" : "GuidanceResponse.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "GuidanceResponse.language",
          "path" : "GuidanceResponse.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "GuidanceResponse.text",
          "path" : "GuidanceResponse.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "GuidanceResponse.contained",
          "path" : "GuidanceResponse.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "GuidanceResponse.extension",
          "path" : "GuidanceResponse.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "GuidanceResponse.extension:cdsHooksEndpoint",
          "path" : "GuidanceResponse.extension",
          "sliceName" : "cdsHooksEndpoint",
          "short" : "Service endpoint",
          "definition" : "Defines the service endpoint for the behavior implemented by the GuidanceResponse.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "GuidanceResponse.modifierExtension",
          "path" : "GuidanceResponse.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "GuidanceResponse.requestIdentifier",
          "path" : "GuidanceResponse.requestIdentifier",
          "short" : "The identifier of the request associated with this response, if any",
          "definition" : "The identifier of the request associated with this response. If an identifier was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.requestIdentifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          }]
        },
        {
          "id" : "GuidanceResponse.identifier",
          "path" : "GuidanceResponse.identifier",
          "short" : "Business identifier",
          "definition" : "Allows a service to provide  unique, business identifiers for the response.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "GuidanceResponse.module[x]",
          "path" : "GuidanceResponse.module[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "What guidance was requested",
          "definition" : "An identifier, CodeableConcept or canonical reference to the guidance that was requested.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.module[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.instantiatesUri | Event.instantiatesCanonical"
          }]
        },
        {
          "id" : "GuidanceResponse.module[x]:moduleUri",
          "path" : "GuidanceResponse.module[x]",
          "sliceName" : "moduleUri",
          "short" : "What guidance was requested",
          "definition" : "An identifier, CodeableConcept or canonical reference to the guidance that was requested.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.module[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.instantiatesUri | Event.instantiatesCanonical"
          }]
        },
        {
          "id" : "GuidanceResponse.status",
          "path" : "GuidanceResponse.status",
          "short" : "success | data-requested | data-required | in-progress | failure | entered-in-error",
          "definition" : "The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GuidanceResponseStatus"
            }],
            "strength" : "required",
            "description" : "The status of a guidance response.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/guidance-response-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "GuidanceResponse.subject",
          "path" : "GuidanceResponse.subject",
          "short" : "Patient the request was performed for",
          "definition" : "The patient for which the request was processed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "GuidanceResponse.encounter",
          "path" : "GuidanceResponse.encounter",
          "short" : "Encounter during which the response was returned",
          "definition" : "The encounter during which this response was created or to which the creation of this record is tightly associated.",
          "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official copmletion of an encounter but still be tied to the context of the encounter.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          }]
        },
        {
          "id" : "GuidanceResponse.occurrenceDateTime",
          "path" : "GuidanceResponse.occurrenceDateTime",
          "short" : "When the guidance response was processed",
          "definition" : "Indicates when the guidance response was processed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.occurrenceDateTime",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          }]
        },
        {
          "id" : "GuidanceResponse.performer",
          "path" : "GuidanceResponse.performer",
          "short" : "Device returning the guidance",
          "definition" : "Provides a reference to the device that performed the guidance.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.performer",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          }]
        },
        {
          "id" : "GuidanceResponse.reasonCode",
          "path" : "GuidanceResponse.reasonCode",
          "short" : "Why guidance is needed",
          "definition" : "Describes the reason for the guidance response in coded or textual form.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "GuidanceResponse.reasonCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          }]
        },
        {
          "id" : "GuidanceResponse.reasonReference",
          "path" : "GuidanceResponse.reasonReference",
          "short" : "Why guidance is needed",
          "definition" : "Indicates the reason the request was initiated. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "GuidanceResponse.reasonReference",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
            "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonReference"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          }]
        },
        {
          "id" : "GuidanceResponse.note",
          "path" : "GuidanceResponse.note",
          "short" : "Additional notes about the response",
          "definition" : "Provides a mechanism to communicate additional information about the response.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "GuidanceResponse.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.note"
          }]
        },
        {
          "id" : "GuidanceResponse.evaluationMessage",
          "path" : "GuidanceResponse.evaluationMessage",
          "short" : "Messages resulting from the evaluation of the artifact or artifacts",
          "definition" : "Messages resulting from the evaluation of the artifact or artifacts. As part of evaluating the request, the engine may produce informational or warning messages. These messages will be provided by this element.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "GuidanceResponse.evaluationMessage",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/OperationOutcome"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "GuidanceResponse.outputParameters",
          "path" : "GuidanceResponse.outputParameters",
          "short" : "The output parameters of the evaluation, if any",
          "definition" : "The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.outputParameters",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Parameters"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "GuidanceResponse.result",
          "path" : "GuidanceResponse.result",
          "short" : "Proposed actions, if any",
          "definition" : "The actions, if any, produced by the evaluation of the artifact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "GuidanceResponse.result",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/RequestGroup"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "GuidanceResponse.dataRequirement",
          "path" : "GuidanceResponse.dataRequirement",
          "short" : "Additional required data",
          "definition" : "If the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation. A subsequent request to the service should include this data.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "GuidanceResponse.dataRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "GuidanceResponse",
          "path" : "GuidanceResponse",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "GuidanceResponse.extension:cdsHooksEndpoint",
          "path" : "GuidanceResponse.extension",
          "sliceName" : "cdsHooksEndpoint",
          "short" : "Service endpoint",
          "definition" : "Defines the service endpoint for the behavior implemented by the GuidanceResponse.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint"]
          }]
        },
        {
          "id" : "GuidanceResponse.requestIdentifier",
          "path" : "GuidanceResponse.requestIdentifier",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "GuidanceResponse.identifier",
          "path" : "GuidanceResponse.identifier",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "GuidanceResponse.moduleUri",
          "path" : "GuidanceResponse.moduleUri",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "GuidanceResponse.subject",
          "path" : "GuidanceResponse.subject",
          "mustSupport" : true
        },
        {
          "id" : "GuidanceResponse.occurrenceDateTime",
          "path" : "GuidanceResponse.occurrenceDateTime",
          "mustSupport" : true
        },
        {
          "id" : "GuidanceResponse.performer",
          "path" : "GuidanceResponse.performer",
          "mustSupport" : true
        },
        {
          "id" : "GuidanceResponse.result",
          "path" : "GuidanceResponse.result",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/devicemetricobservation",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "devicemetricobservation",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/devicemetricobservation",
      "version" : "4.0.1",
      "name" : "Device Metric Observation Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2014-11-17",
      "publisher" : "Health Level Seven International (Health Care Devices)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org"
        }]
      }],
      "description" : "This profile describes the direct or derived, qualitative or quantitative physiological measurement, setting, or calculation data produced by a medical device or a device component.",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "Measurements and simple assertions",
          "definition" : "Measurements and simple assertions made about a patient, device or other subject.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Type of observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"name\".",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.effective[x]:effectiveDateTime",
          "path" : "Observation.effective[x]",
          "sliceName" : "effectiveDateTime",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : false,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Identifier"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.status",
          "path" : "Observation.status",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "min" : 0,
          "max" : "0",
          "mustSupport" : false
        },
        {
          "id" : "Observation.effectiveDateTime",
          "path" : "Observation.effectiveDateTime",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "instant"
          }],
          "mustSupport" : false
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : false
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : false
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }],
          "mustSupport" : false
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "mustSupport" : false
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/observation-genetics",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "observation-genetics",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/observation-genetics",
      "version" : "4.0.1",
      "name" : "Observation-genetics",
      "status" : "draft",
      "experimental" : false,
      "date" : "2016-03-14",
      "publisher" : "Health Level Seven International (Clinical Genomics)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/clingenomics"
        }]
      }],
      "description" : "Describes how the observation resource is used to report structured genetic test results",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "Measurements and simple assertions",
          "definition" : "Measurements and simple assertions made about a patient, device or other subject.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Observation.extension:Gene",
          "path" : "Observation.extension",
          "sliceName" : "Gene",
          "short" : "HGNC gene symbol",
          "definition" : "A region (or regions) that includes all of the sequence elements necessary to encode a functional transcript. A gene may include regulatory regions, transcribed regions and/or other functional sequence regions ([SO:0000704](http://www.sequenceontology.org/browser/current_svn/term/SO:0000704)). This element is the official gene symbol approved by the HGNC, which is a short abbreviated form of the gene name ([HGNC](http://www.genenames.org)). LOINC Code: ([48018-6](http://loinc.org/48018-6)).",
          "comment" : "Other systems or genes not defined in HGNC (e.g., BCR-ABL fusion gene) can be added by using a local extension.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsGene"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:DNARegionName",
          "path" : "Observation.extension",
          "sliceName" : "DNARegionName",
          "short" : "DNA region name",
          "definition" : "A human readable name for the region of interest. Typically Exon #, Intron # or other. NOTE: This is not standardized and is mainly for convenience and display purposes.  LOINC Code: ([47999-8](http://loinc.org/47999-8)).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsDNARegionName"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension:CopyNumberEvent",
          "path" : "Observation.extension",
          "sliceName" : "CopyNumberEvent",
          "short" : "Copy number variation",
          "definition" : "A variation that increases or decreases the copy number of a given region ([SO:0001019](http://www.sequenceontology.org/browser/current_svn/term/SO:0001019)). Values: amplification/deletion/LOH.",
          "comment" : "Loss of heterozygosity (LOH) is a functional variant whereby the sequence alteration causes a loss of function of one allele of a gene ([SO:0001786](http://www.sequenceontology.org/browser/current_svn/term/SO:0001786)).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsCopyNumberEvent"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:GenomicSourceClass",
          "path" : "Observation.extension",
          "sliceName" : "GenomicSourceClass",
          "short" : "Genomic source class",
          "definition" : "Source of sample used to determine the sequence in sequencing lab -- germline, somatic, prenatal. LOINC Code: ([48002-0](http://loinc.org/48002-0)).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsGenomicSourceClass"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension:Interpretation",
          "path" : "Observation.extension",
          "sliceName" : "Interpretation",
          "short" : "Clinical interpretations for variant",
          "definition" : "Clinical Interpretations for variant. It's a reference to an Observation resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsInterpretation"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:Variant",
          "path" : "Observation.extension",
          "sliceName" : "Variant",
          "short" : "Variant",
          "definition" : "Variant information.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsVariant"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:AminoAcidChange",
          "path" : "Observation.extension",
          "sliceName" : "AminoAcidChange",
          "short" : "AminoAcidChange",
          "definition" : "AminoAcidChange information.",
          "comment" : "Loss of heterozygosity (LOH) is a functional variant whereby the sequence alteration causes a loss of function of one allele of a gene ([SO:0001786](http://www.sequenceontology.org/browser/current_svn/term/SO:0001786)).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChange"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension:Allele",
          "path" : "Observation.extension",
          "sliceName" : "Allele",
          "short" : "Allele",
          "definition" : "Allele information.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAllele"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:Ancestry",
          "path" : "Observation.extension",
          "sliceName" : "Ancestry",
          "short" : "Ancestry",
          "definition" : "Ancestry information.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAncestry"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.extension:PhaseSet",
          "path" : "Observation.extension",
          "sliceName" : "PhaseSet",
          "short" : "Phase set",
          "definition" : "Phase set information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsPhaseSet"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Type of observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"name\".",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.extension:Gene",
          "path" : "Observation.extension",
          "sliceName" : "Gene",
          "short" : "HGNC gene symbol",
          "definition" : "A region (or regions) that includes all of the sequence elements necessary to encode a functional transcript. A gene may include regulatory regions, transcribed regions and/or other functional sequence regions ([SO:0000704](http://www.sequenceontology.org/browser/current_svn/term/SO:0000704)). This element is the official gene symbol approved by the HGNC, which is a short abbreviated form of the gene name ([HGNC](http://www.genenames.org)). LOINC Code: ([48018-6](http://loinc.org/48018-6)).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsGene"]
          }]
        },
        {
          "id" : "Observation.extension:DNARegionName",
          "path" : "Observation.extension",
          "sliceName" : "DNARegionName",
          "short" : "DNA region name",
          "definition" : "A human readable name for the region of interest. Typically Exon #, Intron # or other. NOTE: This is not standardized and is mainly for convenience and display purposes.  LOINC Code: ([47999-8](http://loinc.org/47999-8)).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsDNARegionName"]
          }]
        },
        {
          "id" : "Observation.extension:CopyNumberEvent",
          "path" : "Observation.extension",
          "sliceName" : "CopyNumberEvent",
          "short" : "Copy number variation",
          "definition" : "A variation that increases or decreases the copy number of a given region ([SO:0001019](http://www.sequenceontology.org/browser/current_svn/term/SO:0001019)). Values: amplification/deletion/LOH.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsCopyNumberEvent"]
          }]
        },
        {
          "id" : "Observation.extension:GenomicSourceClass",
          "path" : "Observation.extension",
          "sliceName" : "GenomicSourceClass",
          "short" : "Genomic source class",
          "definition" : "Source of sample used to determine the sequence in sequencing lab -- germline, somatic, prenatal. LOINC Code: ([48002-0](http://loinc.org/48002-0)).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsGenomicSourceClass"]
          }]
        },
        {
          "id" : "Observation.extension:Interpretation",
          "path" : "Observation.extension",
          "sliceName" : "Interpretation",
          "short" : "Clinical interpretations for variant",
          "definition" : "Clinical Interpretations for variant. It's a reference to an Observation resource.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsInterpretation"]
          }]
        },
        {
          "id" : "Observation.extension:Variant",
          "path" : "Observation.extension",
          "sliceName" : "Variant",
          "short" : "Variant",
          "definition" : "Variant information.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsVariant"]
          }]
        },
        {
          "id" : "Observation.extension:AminoAcidChange",
          "path" : "Observation.extension",
          "sliceName" : "AminoAcidChange",
          "short" : "AminoAcidChange",
          "definition" : "AminoAcidChange information.",
          "comment" : "Loss of heterozygosity (LOH) is a functional variant whereby the sequence alteration causes a loss of function of one allele of a gene ([SO:0001786](http://www.sequenceontology.org/browser/current_svn/term/SO:0001786)).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChange"]
          }]
        },
        {
          "id" : "Observation.extension:Allele",
          "path" : "Observation.extension",
          "sliceName" : "Allele",
          "short" : "Allele",
          "definition" : "Allele information.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAllele"]
          }]
        },
        {
          "id" : "Observation.extension:Ancestry",
          "path" : "Observation.extension",
          "sliceName" : "Ancestry",
          "short" : "Ancestry",
          "definition" : "Ancestry information.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsAncestry"]
          }]
        },
        {
          "id" : "Observation.extension:PhaseSet",
          "path" : "Observation.extension",
          "sliceName" : "PhaseSet",
          "short" : "Phase set",
          "definition" : "Phase set information.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/observation-geneticsPhaseSet"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "vitalsigns",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "\"#### Complete Summary of the Mandatory Requirements\n\n1.  One status in `Observation.status`which has a [required](http://build.fhir.org/terminologies.html#extensible) binding to:\n    -    [ObservationStatus] value set.\n1.  A category in `Observation.category` which must have:\n    -   a fixed `Observation.category.coding.system`=\"http://terminology.hl7.org/CodeSystem/observation-category\"\n    -   a fixed `Observation.category.coding.code`= \"vital-signs\"\n\n1.  A code in `Observation.code`\n    -   a fixed `Observation.code.coding.system`= \"http://loinc.org\"\"\n    -   a LOINC code in `Observation.code.coding.code` which has an [extensible](http://build.fhir.org/terminologies.html#extensible) binding to:\n         -   [Vital Signs] value set.\n                \n1.  One patient in `Observation.subject`\n1.  A date and time in `effectiveDateTime` or `effectivePeriod`\n1.  Either one `Observation.value[x]` or, if there is no value, one code in `Observation.DataAbsentReason`\n    -   if a vital sign measure then:\n        -  One numeric value in Observation.valueQuantity.value\n        - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\n        - a UCUM unit code in Observation.valueQuantity.code which has an required binding to the [Vital Signs Units] value set.\n    -   Observation.DataAbsentReason is bound to [Observation Value\n        Absent Reason] value set.\n\n1.  When using a panel code to group component observations (Note: See\n    the comments regarding blood pressure in the table above), one or\n    more `Observation.component.code` each of which must have:\n    -   a fixed\n        `Observation.component.code.coding.system` =\"\"http://loinc.org\"\"\n         -   a LOINC code in `Observation.code.coding.code` which has an [extensible] binding to:\n             -   [Vital Signs Units] value set.\n\n1.  Either one `Observation.component.valueQuantity` or, if there is\n    no value, one code in `Observation.component.DataAbsentReason`\n    -   Observation.component.DataAbsentReason is bound to [Observation\n        Value Absent Reason] value set.\n\n1.  When using a panel code to group observations, one or more reference\n    to Vitals Signs Observations in `Observation.related.target`\n    -   a fixed `Observation.related.type`= \"has-member\"\"\n\n [Vital Signs]: valueset-observation-vitalsignresult.html\n  [Vital Signs Units]: valueset-ucum-vitals-common.html\n  [extensible]: terminologies.html#extensible\n  [ObservationStatus]: valueset-observation-status.html\n [Observation Value Absent Reason]: valueset-data-absent-reason.html\n[required]: terminologies.html#required\""
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "version" : "4.0.1",
      "name" : "observation-vitalsigns",
      "title" : "Vital Signs Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2016-03-25",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Vital Signs Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Vital Signs Profile",
          "definition" : "The FHIR Vitals Signs profile sets minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Coded Responses from C-CDA Vital Sign Results",
          "definition" : "Coded Responses from C-CDA Vital Sign Results.",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Vital Signs Profile",
          "definition" : "The FHIR Vitals Signs profile sets minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "constraint" : [{
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }]
        },
        {
          "id" : "Observation.status",
          "path" : "Observation.status",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          }
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "min" : 1,
          "max" : "*",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "min" : 1,
          "max" : "*",
          "type" : [{
            "code" : "Coding"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "mustSupport" : true
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "mustSupport" : true
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Coded Responses from C-CDA Vital Sign Results",
          "definition" : "Coded Responses from C-CDA Vital Sign Results.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          }
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "condition" : ["vs-2"],
          "mustSupport" : true
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["vs-2"],
          "mustSupport" : true
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "constraint" : [{
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          }
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "condition" : ["vs-3"],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          }
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["vs-3"],
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/bodyweight",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "bodyweight",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'29463-7'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'kg', 'g', or '[lb_av]'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/bodyweight",
      "version" : "4.0.1",
      "name" : "observation-bodyweight",
      "title" : "Observation Body Weight Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Body Weight Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Weight Profile",
          "definition" : "This profile defines  how to represent body weight observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Weight",
          "definition" : "Body Weight.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyWeightCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "29463-7",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyWeightUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for Body Weight.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodyweight|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Weight Profile",
          "definition" : "This profile defines  how to represent body weight observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Weight",
          "definition" : "Body Weight.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyWeightCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:BodyWeightCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "29463-7"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyWeightUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for Body Weight.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodyweight|4.0.1"
          }
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/vitalspanel",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "vitalspanel",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'85353-1'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1.  No value in `Observation.value[x]`\r1.  At Least one Vitals Sign Observation reference in `Observation.hasMember`"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/vitalspanel",
      "version" : "4.0.1",
      "name" : "observation-vitalspanel",
      "title" : "Observation Vital Signs Panel Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Vital Signs Panel Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Vital Signs Panel Profile",
          "definition" : "This profile defines the top-level grouping structure for a set of vital signs. It has no value in Observation.valueQuantity ; instead, it just includes related links (with type=has-member) to the Observations in this set (e.g. respiratory rate, heart rate, BP).",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Vital Signs Panel",
          "definition" : "Vital Signs Panel.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Panel Name",
          "Panel Code"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode",
          "path" : "Observation.code.coding",
          "sliceName" : "VitalsPanelCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "85353-1",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Vital Signs Panel Profile",
          "definition" : "This profile defines the top-level grouping structure for a set of vital signs. It has no value in Observation.valueQuantity ; instead, it just includes related links (with type=has-member) to the Observations in this set (e.g. respiratory rate, heart rate, BP).",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Vital Signs Panel",
          "definition" : "Vital Signs Panel.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Panel Name",
          "Panel Code"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode",
          "path" : "Observation.code.coding",
          "sliceName" : "VitalsPanelCode"
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.system",
          "path" : "Observation.code.coding.system",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:VitalsPanelCode.code",
          "path" : "Observation.code.coding.code",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "85353-1"
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 1,
          "max" : "*",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/bodyheight",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "bodyheight",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'8302-2'**\r    -   8306-3 -Body height - lying (i.e., body length - typically used for infants) MAY be included as an additional observation code  - Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'cm', or '[in_i]'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/bodyheight",
      "version" : "4.0.1",
      "name" : "observation-bodyheight",
      "title" : "Observation Body Height Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Body Height Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Height Profile",
          "definition" : "This profile defines  how to represent Body Height observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Height",
          "definition" : "Body Height.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyHeightCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8302-2",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyLengthUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for body length measures such as Body Height and Head Circumference.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodylength|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Height Profile",
          "definition" : "This profile defines  how to represent Body Height observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Height",
          "definition" : "Body Height.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyHeightCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:BodyHeightCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8302-2"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyLengthUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for body length measures such as Body Height and Head Circumference.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodylength|4.0.1"
          }
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/resprate",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "resprate",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'9279-1'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'/min'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/resprate",
      "version" : "4.0.1",
      "name" : "observation-resprate",
      "title" : "Observation Respiratory Rate Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Respiratory Rate Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Respiratory Rate Profile",
          "definition" : "This profile defines  how to represent Respiratory Rate observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Respiratory Rate",
          "definition" : "Respiratory Rate.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode",
          "path" : "Observation.code.coding",
          "sliceName" : "RespRateCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "9279-1",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:RespRateCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "/min",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Respiratory Rate Profile",
          "definition" : "This profile defines  how to represent Respiratory Rate observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Respiratory Rate",
          "definition" : "Respiratory Rate.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:RespRateCode",
          "path" : "Observation.code.coding",
          "sliceName" : "RespRateCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:RespRateCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:RespRateCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "9279-1"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "/min",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/heartrate",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "heartrate",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'8867-4'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'/min'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/heartrate",
      "version" : "4.0.1",
      "name" : "observation-heartrate",
      "title" : "Observation Heart Rate Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Heart Rate Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Heart Rate Profile",
          "definition" : "This profile defines how to represent heart rate observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Heart Rate",
          "definition" : "Heart Rate.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode",
          "path" : "Observation.code.coding",
          "sliceName" : "HeartRateCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8867-4",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "/min",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Heart Rate Profile",
          "definition" : "This profile defines how to represent heart rate observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Heart Rate",
          "definition" : "Heart Rate.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:HeartRateCode",
          "path" : "Observation.code.coding",
          "sliceName" : "HeartRateCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:HeartRateCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8867-4"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "/min",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/bodytemp",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "bodytemp",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'8310-5'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'Cel', or '[degF]'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/bodytemp",
      "version" : "4.0.1",
      "name" : "observation-bodytemp",
      "title" : "Observation Body Temperature Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Body Temperature Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Temperature Profile",
          "definition" : "This profile defines  how to represent Body Temperature observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Temperature",
          "definition" : "Body Temperature.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyTempCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8310-5",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyTempUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for Body Temperature.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodytemp|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Temperature Profile",
          "definition" : "This profile defines  how to represent Body Temperature observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Temperature",
          "definition" : "Body Temperature.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:BodyTempCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BodyTempCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:BodyTempCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8310-5"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyTempUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for Body Temperature.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodytemp|4.0.1"
          }
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/headcircum",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "headcircum",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'9843-4'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'cm', or '[in_i]'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/headcircum",
      "version" : "4.0.1",
      "name" : "observation-headcircum",
      "title" : "Observation Head Circumference Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Head Circumference Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Head Circumference Profile",
          "definition" : "This profile defines  how to represent Head Circumference observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Head Circumference",
          "definition" : "Head Circumference.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode",
          "path" : "Observation.code.coding",
          "sliceName" : "HeadCircumCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "9843-4",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyLengthUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for body length measures such as Body Height and Head Circumference.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodylength|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Head Circumference Profile",
          "definition" : "This profile defines  how to represent Head Circumference observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Head Circumference",
          "definition" : "Head Circumference.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode",
          "path" : "Observation.code.coding",
          "sliceName" : "HeadCircumCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:HeadCircumCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "9843-4"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodyLengthUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for body length measures such as Body Height and Head Circumference.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-bodylength|4.0.1"
          }
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/oxygensat",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "oxygensat",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "\"#### Complete Summary of the Mandatory Requirements\n\n1.  One code in `Observation.code` which must have\n    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\n    -   a fixed  `Observation.code.coding.code`= **'2708-6'**\n    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\n        Codes, SNOMED CT concepts, system specific codes. All codes\n        SHALL have an system value\n1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\n   - Each Observation.valueQuantity must have:\n     - One numeric value in Observation.valueQuantity.value\n     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\n     - a UCUM unit code in Observation.valueQuantity.code = **'%'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/oxygensat",
      "version" : "4.0.1",
      "name" : "observation-oxygensat",
      "title" : "Observation Oxygen Saturation Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-10-23",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Oxygen Saturation Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Oxygen Saturation Profile",
          "definition" : "This profile defines  how to represent Oxygen Saturation observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Oxygen Saturation",
          "definition" : "Oxygen Saturation.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode",
          "path" : "Observation.code.coding",
          "sliceName" : "OxygenSatCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "2708-6",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "%",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Oxygen Saturation Profile",
          "definition" : "This profile defines  how to represent Oxygen Saturation observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Oxygen Saturation",
          "definition" : "Oxygen Saturation.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode",
          "path" : "Observation.code.coding",
          "sliceName" : "OxygenSatCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:OxygenSatCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "2708-6"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "%",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/bmi",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "bmi",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **'39156-5'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'kg/m2'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/bmi",
      "version" : "4.0.1",
      "name" : "observation-bmi",
      "title" : "Observation Body Mass Index Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Body Mass Index (BMI) Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Mass Index (BMI) Profile",
          "definition" : "This profile defines  how to represent Body Mass Index (BMI) observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Mass Index (BMI)",
          "definition" : "Body Mass Index (BMI).",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode",
          "path" : "Observation.code.coding",
          "sliceName" : "BMICode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "39156-5",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:BMICode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "kg/m2",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Body Mass Index (BMI) Profile",
          "definition" : "This profile defines  how to represent Body Mass Index (BMI) observations in FHIR using a standard LOINC code and UCUM units of measure.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Body Mass Index (BMI)",
          "definition" : "Body Mass Index (BMI).",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:BMICode",
          "path" : "Observation.code.coding",
          "sliceName" : "BMICode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:BMICode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:BMICode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "39156-5"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "kg/m2",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/bp",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "bp",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "#### Complete Summary of the Mandatory Requirements\r\r1.  One code in `Observation.code` which must have\r    -   a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r    -   a fixed  `Observation.code.coding.code`= **85354-9'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r2.  One  `Observation.component.code`  which must have\r    -   a fixed `Observation.component.code.coding.system`=**'http://loinc.org'**\r    -   fixed  `Observation.component.code.coding.code`= **'8480-6'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r3.  One  `Observation.component.code` which must have \r    -   a fixed `Observation.component.code.coding.system`=**'http://loinc.org'**\r    -   fixed  `Observation.component.code.coding.code`= **'8462-4'**\r    -   Other additional Codings are allowed in `Observation.code`- e.g. more specific LOINC\r        Codes, SNOMED CT concepts, system specific codes. All codes\r        SHALL have an system value\r1. Either one Observation.valueQuantity or, if there is no value, one code in Observation.DataAbsentReason\r   - Each Observation.valueQuantity must have:\r     - One numeric value in Observation.valueQuantity.value\r     - a fixed Observation.valueQuantity.system=\"http://unitsofmeasure.org\"\r     - a UCUM unit code in Observation.valueQuantity.code = **'mm[Hg]'**"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 5
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/bp",
      "version" : "4.0.1",
      "name" : "observation-bp",
      "title" : "Observation Blood Pressure Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-08-11",
      "publisher" : "Health Level Seven International (Orders and Observations Workgroup)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"
        }]
      }],
      "description" : "FHIR Blood Pressure Profile",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/vitalsigns",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Blood Pressure Profile",
          "definition" : "This profile defines  how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure.  This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic).",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "vs-2",
            "severity" : "error",
            "human" : "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression" : "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath" : "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Status"
            }],
            "strength" : "required",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "coding.code"
            },
            {
              "type" : "value",
              "path" : "coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat",
          "path" : "Observation.category",
          "sliceName" : "VSCat",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.id",
          "path" : "Observation.category.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.extension",
          "path" : "Observation.category.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding",
          "path" : "Observation.category.coding",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.id",
          "path" : "Observation.category.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.extension",
          "path" : "Observation.category.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.system",
          "path" : "Observation.category.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.version",
          "path" : "Observation.category.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.code",
          "path" : "Observation.category.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "vital-signs",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.category:VSCat.coding.userSelected",
          "path" : "Observation.category.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.category:VSCat.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.category.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Blood Pressure",
          "definition" : "Blood Pressure.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
          "alias" : ["Name",
          "Test"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.code.id",
          "path" : "Observation.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.extension",
          "path" : "Observation.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BPCode",
          "short" : "Code defined by a terminology system",
          "definition" : "A reference to a code defined by a terminology system.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.id",
          "path" : "Observation.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.extension",
          "path" : "Observation.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.system",
          "path" : "Observation.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.version",
          "path" : "Observation.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.code",
          "path" : "Observation.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "85354-9",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.code.coding:BPCode.userSelected",
          "path" : "Observation.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Often just a dateTime for Vital Signs",
          "definition" : "Often just a dateTime for Vital Signs.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-1",
            "severity" : "error",
            "human" : "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
            "expression" : "($this as dateTime).toString().length() >= 8",
            "xpath" : "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "definition" : "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about the observation",
          "definition" : "Comments about the observation or the results.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Used when reporting vital signs panel components",
          "definition" : "Used when reporting vital signs panel components.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
            "http://hl7.org/fhir/StructureDefinition/vitalsigns"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code.coding.code"
            },
            {
              "type" : "value",
              "path" : "code.coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 2,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP",
          "path" : "Observation.component",
          "sliceName" : "SystolicBP",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Component Test",
          "Component Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.id",
          "path" : "Observation.component.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.extension",
          "path" : "Observation.component.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding",
          "path" : "Observation.component.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Systolic Blood Pressure",
          "definition" : "Systolic Blood Pressure.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode",
          "path" : "Observation.component.code.coding",
          "sliceName" : "SBPCode",
          "short" : "Systolic Blood Pressure",
          "definition" : "Systolic Blood Pressure.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.id",
          "path" : "Observation.component.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.extension",
          "path" : "Observation.component.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.system",
          "path" : "Observation.component.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.version",
          "path" : "Observation.component.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.code",
          "path" : "Observation.component.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8480-6",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.userSelected",
          "path" : "Observation.component.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].id",
          "path" : "Observation.component.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].extension",
          "path" : "Observation.component.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].value",
          "path" : "Observation.component.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].comparator",
          "path" : "Observation.component.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].system",
          "path" : "Observation.component.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.value[x].code",
          "path" : "Observation.component.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mm[Hg]",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP",
          "path" : "Observation.component",
          "sliceName" : "DiastolicBP",
          "short" : "Used when reporting systolic and diastolic blood pressure.",
          "definition" : "Used when reporting systolic and diastolic blood pressure.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "vs-3",
            "severity" : "error",
            "human" : "If there is no a value a data absent reason must be present",
            "expression" : "value.exists() or dataAbsentReason.exists()",
            "xpath" : "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source" : "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSigns"
            }],
            "strength" : "extensible",
            "description" : "This identifies the vital sign result type.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.id",
          "path" : "Observation.component.code.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.extension",
          "path" : "Observation.component.code.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding",
          "path" : "Observation.component.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Diastolic Blood Pressure",
          "definition" : "Diastolic Blood Pressure.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode",
          "path" : "Observation.component.code.coding",
          "sliceName" : "DBPCode",
          "short" : "Diastolic Blood Pressure",
          "definition" : "Diastolic Blood Pressure.",
          "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
          "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.coding",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1-8, C*E.10-22"
          },
          {
            "identity" : "rim",
            "map" : "union(., ./translation)"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.id",
          "path" : "Observation.component.code.coding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.extension",
          "path" : "Observation.component.code.coding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.system",
          "path" : "Observation.component.code.coding.system",
          "short" : "Identity of the terminology system",
          "definition" : "The identification of the code system that defines the meaning of the symbol in the code.",
          "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
          "requirements" : "Need to be unambiguous about the source of the definition of the symbol.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.3"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystem"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.version",
          "path" : "Observation.component.code.coding.version",
          "short" : "Version of the system - if relevant",
          "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
          "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.7"
          },
          {
            "identity" : "rim",
            "map" : "./codeSystemVersion"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.code",
          "path" : "Observation.component.code.coding.code",
          "short" : "Symbol in syntax defined by the system",
          "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
          "requirements" : "Need to refer to a particular code in the system.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Coding.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8462-4",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.1"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.display",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.code.coding.display",
          "short" : "Representation defined by the system",
          "definition" : "A representation of the meaning of the code in the system, following the rules of the system.",
          "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.display",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.2 - but note this is not well followed"
          },
          {
            "identity" : "rim",
            "map" : "CV.displayName"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.userSelected",
          "path" : "Observation.component.code.coding.userSelected",
          "short" : "If this coding was chosen directly by the user",
          "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
          "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
          "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Coding.userSelected",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Sometimes implied by being first"
          },
          {
            "identity" : "rim",
            "map" : "CD.codingRationale"
          },
          {
            "identity" : "orim",
            "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.code.text",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.code.text",
          "short" : "Plain text representation of the concept",
          "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
          "comment" : "Very often the text is the same as a displayName of one of the codings.",
          "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "CodeableConcept.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity" : "rim",
            "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
          },
          {
            "identity" : "orim",
            "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Vital Sign Value recorded with UCUM",
          "definition" : "Vital Sign Value recorded with UCUM.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "VitalSignsUnits"
            }],
            "strength" : "required",
            "description" : "Common UCUM units for recording Vital Signs.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].id",
          "path" : "Observation.component.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].extension",
          "path" : "Observation.component.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].value",
          "path" : "Observation.component.value[x].value",
          "short" : "Numerical value (with implicit precision)",
          "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].comparator",
          "path" : "Observation.component.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.component.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].system",
          "path" : "Observation.component.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.value[x].code",
          "path" : "Observation.component.value[x].code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mm[Hg]",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6",
          "vs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "FHIR Blood Pressure Profile",
          "definition" : "This profile defines  how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure.  This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic).",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Blood Pressure",
          "definition" : "Blood Pressure.",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Test",
          "Name"]
        },
        {
          "id" : "Observation.code.coding",
          "path" : "Observation.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          }
        },
        {
          "id" : "Observation.code.coding:BPCode",
          "path" : "Observation.code.coding",
          "sliceName" : "BPCode",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code.coding:BPCode.system",
          "path" : "Observation.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.code.coding:BPCode.code",
          "path" : "Observation.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "85354-9"
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code.coding.code"
            },
            {
              "type" : "value",
              "path" : "code.coding.system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "min" : 2,
          "max" : "*"
        },
        {
          "id" : "Observation.component:SystolicBP",
          "path" : "Observation.component",
          "sliceName" : "SystolicBP",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.component:SystolicBP.code",
          "path" : "Observation.component.code",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.",
          "alias" : ["Component Test",
          "Component Name"]
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding",
          "path" : "Observation.component.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Systolic Blood Pressure",
          "definition" : "Systolic Blood Pressure."
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode",
          "path" : "Observation.component.code.coding",
          "sliceName" : "SBPCode",
          "short" : "Systolic Blood Pressure",
          "definition" : "Systolic Blood Pressure.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.system",
          "path" : "Observation.component.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.component:SystolicBP.code.coding:SBPCode.code",
          "path" : "Observation.component.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8480-6"
        },
        {
          "id" : "Observation.component:SystolicBP.valueQuantity",
          "path" : "Observation.component.valueQuantity",
          "type" : [{
            "code" : "Quantity"
          }]
        },
        {
          "id" : "Observation.component:SystolicBP.valueQuantity.value",
          "path" : "Observation.component.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:SystolicBP.valueQuantity.unit",
          "path" : "Observation.component.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:SystolicBP.valueQuantity.system",
          "path" : "Observation.component.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:SystolicBP.valueQuantity.code",
          "path" : "Observation.component.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mm[Hg]",
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:DiastolicBP",
          "path" : "Observation.component",
          "sliceName" : "DiastolicBP",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.component:DiastolicBP.code",
          "path" : "Observation.component.code",
          "comment" : "additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system."
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding",
          "path" : "Observation.component.code.coding",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "code"
            },
            {
              "type" : "value",
              "path" : "system"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Diastolic Blood Pressure",
          "definition" : "Diastolic Blood Pressure."
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode",
          "path" : "Observation.component.code.coding",
          "sliceName" : "DBPCode",
          "short" : "Diastolic Blood Pressure",
          "definition" : "Diastolic Blood Pressure.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.system",
          "path" : "Observation.component.code.coding.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://loinc.org"
        },
        {
          "id" : "Observation.component:DiastolicBP.code.coding:DBPCode.code",
          "path" : "Observation.component.code.coding.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "8462-4"
        },
        {
          "id" : "Observation.component:DiastolicBP.valueQuantity",
          "path" : "Observation.component.valueQuantity",
          "type" : [{
            "code" : "Quantity"
          }]
        },
        {
          "id" : "Observation.component:DiastolicBP.valueQuantity.value",
          "path" : "Observation.component.valueQuantity.value",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:DiastolicBP.valueQuantity.unit",
          "path" : "Observation.component.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:DiastolicBP.valueQuantity.system",
          "path" : "Observation.component.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.component:DiastolicBP.valueQuantity.code",
          "path" : "Observation.component.valueQuantity.code",
          "short" : "Coded responses from the common UCUM units for vital signs value set.",
          "definition" : "Coded responses from the common UCUM units for vital signs value set.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mm[Hg]",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareablelibrary",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareablelibrary",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareablelibrary",
      "version" : "4.0.1",
      "name" : "Shareable Library",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the library metadata required by HL7 and other organizations that share and publish libraries",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Library",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Library",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Library",
          "path" : "Library",
          "short" : "Represents a library of quality improvement components",
          "definition" : "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "lib-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/Library"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "Act[classCode=GROUPER;moodCode=EVN]"
          }]
        },
        {
          "id" : "Library.id",
          "path" : "Library.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Library.meta",
          "path" : "Library.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Library.implicitRules",
          "path" : "Library.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Library.language",
          "path" : "Library.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Library.text",
          "path" : "Library.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Library.contained",
          "path" : "Library.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.extension",
          "path" : "Library.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.modifierExtension",
          "path" : "Library.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.url",
          "path" : "Library.url",
          "short" : "Canonical identifier for this library, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this library 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 at which an authoritative instance of this library is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the library is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the library to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier[scope=BUSN;reliability=ISS]"
          }]
        },
        {
          "id" : "Library.identifier",
          "path" : "Library.identifier",
          "short" : "Additional identifier for the library",
          "definition" : "A formal identifier that is used to identify this library when it is represented in other formats, or referenced in a specification, model, design or an instance. e.g. CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this library outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.version",
          "path" : "Library.version",
          "short" : "Business version of the library",
          "definition" : "The identifier that is used to identify this version of the library when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the library 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different library 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 library with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.name",
          "path" : "Library.name",
          "short" : "Name for this library (computer friendly)",
          "definition" : "A natural language name identifying the library. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.title",
          "path" : "Library.title",
          "short" : "Name for this library (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the library.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          },
          {
            "identity" : "rim",
            "map" : ".title"
          }]
        },
        {
          "id" : "Library.subtitle",
          "path" : "Library.subtitle",
          "short" : "Subordinate title of the library",
          "definition" : "An explanatory or alternate title for the library giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Library.status",
          "path" : "Library.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this library. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of libraries that are appropriate for use vs. not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : ".status"
          }]
        },
        {
          "id" : "Library.experimental",
          "path" : "Library.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this library is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of librarys that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level library.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.type",
          "path" : "Library.type",
          "short" : "logic-library | model-definition | asset-collection | module-definition",
          "definition" : "Identifies the type of library such as a Logic Library, Model Definition, Asset Collection, or Module Definition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "LibraryType"
            }],
            "strength" : "extensible",
            "description" : "The type of knowledge asset this library contains.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/library-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          }]
        },
        {
          "id" : "Library.subject[x]",
          "path" : "Library.subject[x]",
          "short" : "Type of individual the library content is focused on",
          "definition" : "A code or group definition that describes the intended subject of the contents of the library.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          }
        },
        {
          "id" : "Library.date",
          "path" : "Library.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the library was published. 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 library changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Library.publisher",
          "path" : "Library.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the library.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. 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 library. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the library.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          }]
        },
        {
          "id" : "Library.contact",
          "path" : "Library.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=CALLBCK].role"
          }]
        },
        {
          "id" : "Library.description",
          "path" : "Library.description",
          "short" : "Natural language description of the library",
          "definition" : "A free text natural language description of the library from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the library was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the library 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 library is presumed to be the predominant language in the place the library was created).",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.useContext",
          "path" : "Library.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 library instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.jurisdiction",
          "path" : "Library.jurisdiction",
          "short" : "Intended jurisdiction for library (if applicable)",
          "definition" : "A legal or geographic region in which the library is intended to be used.",
          "comment" : "It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.purpose",
          "path" : "Library.purpose",
          "short" : "Why this library is defined",
          "definition" : "Explanation of why this library is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the library. 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 library.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode.text"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.usage",
          "path" : "Library.usage",
          "short" : "Describes the clinical usage of the library",
          "definition" : "A detailed description of how the library is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.copyright",
          "path" : "Library.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the library and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the library.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the library and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.approvalDate",
          "path" : "Library.approvalDate",
          "short" : "When the library was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.lastReviewDate",
          "path" : "Library.lastReviewDate",
          "short" : "When the library was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.effectivePeriod",
          "path" : "Library.effectivePeriod",
          "short" : "When the library is expected to be used",
          "definition" : "The period during which the library content was or is planned to be in active use.",
          "comment" : "The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the library are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.topic",
          "path" : "Library.topic",
          "short" : "E.g. Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the library so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.author",
          "path" : "Library.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "Library.editor",
          "path" : "Library.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Library.reviewer",
          "path" : "Library.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Library.endorser",
          "path" : "Library.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Library.relatedArtifact",
          "path" : "Library.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Libraries must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}"
          }]
        },
        {
          "id" : "Library.parameter",
          "path" : "Library.parameter",
          "short" : "Parameters defined by the library",
          "definition" : "The parameter element defines parameters used by the library.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.parameter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ParameterDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.dataRequirement",
          "path" : "Library.dataRequirement",
          "short" : "What data is referenced by this library",
          "definition" : "Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.dataRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.content",
          "path" : "Library.content",
          "short" : "Contents of the library, either embedded or referenced",
          "definition" : "The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.content",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Attachment"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".text"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Library",
          "path" : "Library",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Library.url",
          "path" : "Library.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "Library.identifier",
          "path" : "Library.identifier",
          "mustSupport" : true
        },
        {
          "id" : "Library.version",
          "path" : "Library.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Library.name",
          "path" : "Library.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Library.title",
          "path" : "Library.title",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Library.experimental",
          "path" : "Library.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "Library.date",
          "path" : "Library.date",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Library.publisher",
          "path" : "Library.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Library.contact",
          "path" : "Library.contact",
          "mustSupport" : true
        },
        {
          "id" : "Library.description",
          "path" : "Library.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.useContext",
          "path" : "Library.useContext",
          "mustSupport" : true
        },
        {
          "id" : "Library.jurisdiction",
          "path" : "Library.jurisdiction",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cqllibrary",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cqllibrary",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqllibrary",
      "version" : "4.0.1",
      "name" : "CQL Library",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Represents a CQL logic library",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Library",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Library",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Library",
          "path" : "Library",
          "short" : "Represents a library of quality improvement components",
          "definition" : "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "lib-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/Library"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "rim",
            "map" : "Act[classCode=GROUPER;moodCode=EVN]"
          }]
        },
        {
          "id" : "Library.id",
          "path" : "Library.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Library.meta",
          "path" : "Library.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Library.implicitRules",
          "path" : "Library.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Library.language",
          "path" : "Library.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Library.text",
          "path" : "Library.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Library.contained",
          "path" : "Library.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.extension",
          "path" : "Library.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.modifierExtension",
          "path" : "Library.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.url",
          "path" : "Library.url",
          "short" : "Canonical identifier for this library, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this library 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 at which an authoritative instance of this library is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the library is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the library to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier[scope=BUSN;reliability=ISS]"
          }]
        },
        {
          "id" : "Library.identifier",
          "path" : "Library.identifier",
          "short" : "Additional identifier for the library",
          "definition" : "A formal identifier that is used to identify this library when it is represented in other formats, or referenced in a specification, model, design or an instance. e.g. CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this library outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : ".identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.version",
          "path" : "Library.version",
          "short" : "Business version of the library",
          "definition" : "The identifier that is used to identify this version of the library when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the library 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different library 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 library with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.name",
          "path" : "Library.name",
          "short" : "Name for this library (computer friendly)",
          "definition" : "A natural language name identifying the library. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Library.title",
          "path" : "Library.title",
          "short" : "Name for this library (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the library.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          },
          {
            "identity" : "rim",
            "map" : ".title"
          }]
        },
        {
          "id" : "Library.subtitle",
          "path" : "Library.subtitle",
          "short" : "Subordinate title of the library",
          "definition" : "An explanatory or alternate title for the library giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Library.status",
          "path" : "Library.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this library. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of libraries that are appropriate for use vs. not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : ".status"
          }]
        },
        {
          "id" : "Library.experimental",
          "path" : "Library.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this library is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of librarys that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level library.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.type",
          "path" : "Library.type",
          "short" : "logic-library | model-definition | asset-collection | module-definition",
          "definition" : "Identifies the type of library such as a Logic Library, Model Definition, Asset Collection, or Module Definition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Library.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "logic-library",
              "display" : "Logic Library"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "LibraryType"
            }],
            "strength" : "extensible",
            "description" : "The type of knowledge asset this library contains.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/library-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          }]
        },
        {
          "id" : "Library.subject[x]",
          "path" : "Library.subject[x]",
          "short" : "Type of individual the library content is focused on",
          "definition" : "A code or group definition that describes the intended subject of the contents of the library.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          }
        },
        {
          "id" : "Library.date",
          "path" : "Library.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the library was published. 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 library changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Library.publisher",
          "path" : "Library.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the library.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. 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 library. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the library.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          }]
        },
        {
          "id" : "Library.contact",
          "path" : "Library.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=CALLBCK].role"
          }]
        },
        {
          "id" : "Library.description",
          "path" : "Library.description",
          "short" : "Natural language description of the library",
          "definition" : "A free text natural language description of the library from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the library was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the library 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 library is presumed to be the predominant language in the place the library was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          }]
        },
        {
          "id" : "Library.useContext",
          "path" : "Library.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 library instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.jurisdiction",
          "path" : "Library.jurisdiction",
          "short" : "Intended jurisdiction for library (if applicable)",
          "definition" : "A legal or geographic region in which the library is intended to be used.",
          "comment" : "It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.purpose",
          "path" : "Library.purpose",
          "short" : "Why this library is defined",
          "definition" : "Explanation of why this library is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the library. 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 library.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : ".reasonCode.text"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.usage",
          "path" : "Library.usage",
          "short" : "Describes the clinical usage of the library",
          "definition" : "A detailed description of how the library is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.copyright",
          "path" : "Library.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the library and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the library.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the library and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.approvalDate",
          "path" : "Library.approvalDate",
          "short" : "When the library was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.lastReviewDate",
          "path" : "Library.lastReviewDate",
          "short" : "When the library was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.effectivePeriod",
          "path" : "Library.effectivePeriod",
          "short" : "When the library is expected to be used",
          "definition" : "The period during which the library content was or is planned to be in active use.",
          "comment" : "The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the library are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Library.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "rim",
            "map" : "N/A (to add?)"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Library.topic",
          "path" : "Library.topic",
          "short" : "E.g. Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the library so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.author",
          "path" : "Library.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "Library.editor",
          "path" : "Library.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Library.reviewer",
          "path" : "Library.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Library.endorser",
          "path" : "Library.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Library.relatedArtifact",
          "path" : "Library.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Libraries must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}"
          }]
        },
        {
          "id" : "Library.parameter",
          "path" : "Library.parameter",
          "short" : "Parameters defined by the library",
          "definition" : "The parameter element defines parameters used by the library.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.parameter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ParameterDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.dataRequirement",
          "path" : "Library.dataRequirement",
          "short" : "What data is referenced by this library",
          "definition" : "Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.dataRequirement",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (to add?)"
          }]
        },
        {
          "id" : "Library.content",
          "path" : "Library.content",
          "short" : "Contents of the library, either embedded or referenced",
          "definition" : "The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Library.content",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Attachment"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".text"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Library",
          "path" : "Library",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Library.type",
          "path" : "Library.type",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "logic-library",
              "display" : "Logic Library"
            }]
          }
        },
        {
          "id" : "Library.parameter",
          "path" : "Library.parameter",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "ParameterDefinition"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Library.dataRequirement",
          "path" : "Library.dataRequirement",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "DataRequirement"
          }],
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/lipidprofile",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "lipidprofile",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
        "valueMarkdown" : "This is a test summary [lipids](observation.html)"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/lipidprofile",
      "version" : "4.0.1",
      "name" : "Example Lipid Profile",
      "status" : "draft",
      "experimental" : true,
      "date" : "2012-05-12",
      "publisher" : "Grahame Grieve",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "grahame@healthintersections.com.au"
        }]
      }],
      "description" : "Lipid Lab Report",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "DiagnosticReport",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "short" : "Lipid Lab Report",
          "definition" : "The findings and interpretation of a general lipid lab profile.",
          "comment" : "In this profile, mustSupport means that authoring systems must include the ability to report these elements, and processing systems must cater for them by either displaying them to the user or considering them appropriately in decision support systems.",
          "alias" : ["Report",
          "Test",
          "Result",
          "Results",
          "Labs",
          "Laboratory"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "v2",
            "map" : "ORU -> OBR"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.id",
          "path" : "DiagnosticReport.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.meta",
          "path" : "DiagnosticReport.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.implicitRules",
          "path" : "DiagnosticReport.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.language",
          "path" : "DiagnosticReport.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "DiagnosticReport.text",
          "path" : "DiagnosticReport.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "DiagnosticReport.contained",
          "path" : "DiagnosticReport.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.extension",
          "path" : "DiagnosticReport.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.modifierExtension",
          "path" : "DiagnosticReport.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.identifier",
          "path" : "DiagnosticReport.identifier",
          "short" : "Business identifier for report",
          "definition" : "Identifiers assigned to this report by the performer or other systems.",
          "comment" : "Usually assigned by the Information System of the diagnostic service provider (filler id).",
          "requirements" : "Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context.",
          "alias" : ["ReportID",
          "Filler ID",
          "Placer ID"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBR-51/ for globally unique filler ID  - OBR-3 , For non-globally unique filler-id the flller/placer number must be combined with the universal service Id -  OBR-2(if present)+OBR-3+OBR-4"
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "DiagnosticReport.basedOn",
          "path" : "DiagnosticReport.basedOn",
          "short" : "What was requested",
          "definition" : "Details concerning a service requested.",
          "comment" : "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.",
          "requirements" : "This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Request"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC? OBR-2/3?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "DiagnosticReport.status",
          "path" : "DiagnosticReport.status",
          "short" : "registered | partial | preliminary | final +",
          "definition" : "The status of the diagnostic report.",
          "requirements" : "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportStatus"
            }],
            "strength" : "required",
            "description" : "The status of the diagnostic report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "v2",
            "map" : "OBR-25 (not 1:1 mapping)"
          },
          {
            "identity" : "rim",
            "map" : "statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type \"revise\""
          }]
        },
        {
          "id" : "DiagnosticReport.category",
          "path" : "DiagnosticReport.category",
          "short" : "Service category",
          "definition" : "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.",
          "comment" : "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.",
          "alias" : ["Department",
          "Sub-department",
          "Service",
          "Discipline"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticServiceSection"
            }],
            "strength" : "example",
            "description" : "Codes for diagnostic service sections.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "v2",
            "map" : "OBR-24"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code"
          }]
        },
        {
          "id" : "DiagnosticReport.code",
          "path" : "DiagnosticReport.code",
          "short" : "LOINC Code for Lipid Panel with LDL",
          "definition" : "LOINC Code for Lipid Panel with LDL.",
          "comment" : "LOINC code includes \"direct\" LDL - does this mean LDL derived by measuring VLDL by ultracentrifugation? This panel includes both measured and calculated LDL.",
          "alias" : ["Type"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "57698-3",
              "display" : "Lipid panel with direct LDL - Serum or Plasma"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportCodes"
            }],
            "strength" : "preferred",
            "description" : "Codes that describe Diagnostic Reports.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/report-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "DiagnosticReport.subject",
          "path" : "DiagnosticReport.subject",
          "short" : "The subject of the report - usually, but not always, the patient",
          "definition" : "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.",
          "requirements" : "SHALL know the subject context.",
          "alias" : ["Patient"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3 (no HL7 v2 mapping for Group or Device)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "DiagnosticReport.encounter",
          "path" : "DiagnosticReport.encounter",
          "short" : "Health care event when test ordered",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests).",
          "requirements" : "Links the request to the Encounter context.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1-19"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.effective[x]",
          "path" : "DiagnosticReport.effective[x]",
          "short" : "Clinically relevant time/time-period for report",
          "definition" : "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
          "requirements" : "Need to know where in the patient history to file/present this report.",
          "alias" : ["Observation time",
          "Effective Time",
          "Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-7"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "DiagnosticReport.issued",
          "path" : "DiagnosticReport.issued",
          "short" : "DateTime this version was made",
          "definition" : "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.",
          "comment" : "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.",
          "requirements" : "Clinicians need to be able to check the date that the report was released.",
          "alias" : ["Date published",
          "Date Issued",
          "Date Verified"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR-22"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=VRF or AUT].time"
          }]
        },
        {
          "id" : "DiagnosticReport.performer",
          "path" : "DiagnosticReport.performer",
          "short" : "Responsible Diagnostic Service",
          "definition" : "The diagnostic service that is responsible for issuing the report.",
          "comment" : "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Laboratory",
          "Service",
          "Practitioner",
          "Department",
          "Company",
          "Authorized by",
          "Director"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "PRT-8 (where this PRT-4-Participation = \"PO\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.resultsInterpreter",
          "path" : "DiagnosticReport.resultsInterpreter",
          "short" : "Primary result interpreter",
          "definition" : "The practitioner or organization that is responsible for the report's conclusions and interpretations.",
          "comment" : "Might not be the same entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Analyzed by",
          "Reported by"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.resultsInterpreter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBR-32, PRT-8 (where this PRT-4-Participation = \"PI\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.specimen",
          "path" : "DiagnosticReport.specimen",
          "short" : "Specimens this report is based on",
          "definition" : "Details about the specimens on which this diagnostic report is based.",
          "comment" : "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.",
          "requirements" : "Need to be able to report information about the collected specimens on which the report is based.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.specimen",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SPM"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          }]
        },
        {
          "id" : "DiagnosticReport.result",
          "path" : "DiagnosticReport.result",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "resolve().code"
            }],
            "ordered" : true,
            "rules" : "closed"
          },
          "short" : "Observations",
          "definition" : "[Observations](http://hl7.org/fhir/observation.html)  that are part of this diagnostic report.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 3,
          "max" : "4",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.result:Cholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "Cholesterol",
          "short" : "Cholesterol Result",
          "definition" : "Reference to Cholesterol Result.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/cholesterol"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.result:Triglyceride",
          "path" : "DiagnosticReport.result",
          "sliceName" : "Triglyceride",
          "short" : "Triglyceride Result",
          "definition" : "Group of elements for Triglyceride result.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/triglyceride"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.result:HDLCholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "HDLCholesterol",
          "short" : "HDL Cholesterol Result",
          "definition" : "Group of elements for HDL Cholesterol result.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/hdlcholesterol"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.result:LDLCholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "LDLCholesterol",
          "short" : "LDL Cholesterol result, if reported",
          "definition" : "LDL Cholesterol result, if reported.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ldlcholesterol"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.imagingStudy",
          "path" : "DiagnosticReport.imagingStudy",
          "short" : "Reference to full details of imaging associated with the diagnostic report",
          "definition" : "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.",
          "comment" : "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.imagingStudy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.media",
          "path" : "DiagnosticReport.media",
          "short" : "Key images associated with this report",
          "definition" : "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).",
          "requirements" : "Many diagnostic services include images in the report as part of their service.",
          "alias" : ["DICOM",
          "Slides",
          "Scans"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.media",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.media.id",
          "path" : "DiagnosticReport.media.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.extension",
          "path" : "DiagnosticReport.media.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.modifierExtension",
          "path" : "DiagnosticReport.media.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.media.comment",
          "path" : "DiagnosticReport.media.comment",
          "short" : "Comment about the image (e.g. explanation)",
          "definition" : "A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features.",
          "comment" : "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.",
          "requirements" : "The provider of the report should make a comment about each image included in the report.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.comment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }]
        },
        {
          "id" : "DiagnosticReport.media.link",
          "path" : "DiagnosticReport.media.link",
          "short" : "Reference to the image source",
          "definition" : "Reference to the image source.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.link",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Media"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".value.reference"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusion",
          "path" : "DiagnosticReport.conclusion",
          "short" : "Clinical Interpretation of Lipid Panel",
          "definition" : "May include diagnosis or suggestions for follow up testing.",
          "comment" : "It's not unusual for the lab to make some kind of interpretative comment on the set of results.",
          "requirements" : "Need to be able to provide a conclusion that is not lost among the basic result data.",
          "alias" : ["Report"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.conclusion",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusionCode",
          "path" : "DiagnosticReport.conclusionCode",
          "short" : "No codes for a lipid panel",
          "definition" : "No codes for a lipid panel.",
          "comment" : "Not used in this context.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "DiagnosticReport.conclusionCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AdjunctDiagnosis"
            }],
            "strength" : "example",
            "description" : "Diagnosis codes provided as adjuncts to the report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)"
          }]
        },
        {
          "id" : "DiagnosticReport.presentedForm",
          "path" : "DiagnosticReport.presentedForm",
          "short" : "Entire report as issued",
          "definition" : "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.",
          "comment" : "\"application/pdf\" is recommended as the most reliable and interoperable in this context.",
          "requirements" : "Gives laboratory the ability to provide its own fully formatted report for clinical fidelity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.presentedForm",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Attachment"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "text (type=ED)"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "short" : "Lipid Lab Report",
          "definition" : "The findings and interpretation of a general lipid lab profile.",
          "comment" : "In this profile, mustSupport means that authoring systems must include the ability to report these elements, and processing systems must cater for them by either displaying them to the user or considering them appropriately in decision support systems.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "DiagnosticReport.code",
          "path" : "DiagnosticReport.code",
          "short" : "LOINC Code for Lipid Panel with LDL",
          "definition" : "LOINC Code for Lipid Panel with LDL.",
          "comment" : "LOINC code includes \"direct\" LDL - does this mean LDL derived by measuring VLDL by ultracentrifugation? This panel includes both measured and calculated LDL.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "57698-3",
              "display" : "Lipid panel with direct LDL - Serum or Plasma"
            }]
          }
        },
        {
          "id" : "DiagnosticReport.result",
          "path" : "DiagnosticReport.result",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "resolve().code"
            }],
            "ordered" : true,
            "rules" : "closed"
          },
          "min" : 3,
          "max" : "4"
        },
        {
          "id" : "DiagnosticReport.result:Cholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "Cholesterol",
          "short" : "Cholesterol Result",
          "definition" : "Reference to Cholesterol Result.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/cholesterol"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "DiagnosticReport.result:Triglyceride",
          "path" : "DiagnosticReport.result",
          "sliceName" : "Triglyceride",
          "short" : "Triglyceride Result",
          "definition" : "Group of elements for Triglyceride result.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/triglyceride"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "DiagnosticReport.result:HDLCholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "HDLCholesterol",
          "short" : "HDL Cholesterol Result",
          "definition" : "Group of elements for HDL Cholesterol result.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/hdlcholesterol"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "DiagnosticReport.result:LDLCholesterol",
          "path" : "DiagnosticReport.result",
          "sliceName" : "LDLCholesterol",
          "short" : "LDL Cholesterol result, if reported",
          "definition" : "LDL Cholesterol result, if reported.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ldlcholesterol"]
          }],
          "mustSupport" : true
        },
        {
          "id" : "DiagnosticReport.conclusion",
          "path" : "DiagnosticReport.conclusion",
          "short" : "Clinical Interpretation of Lipid Panel",
          "definition" : "May include diagnosis or suggestions for follow up testing.",
          "comment" : "It's not unusual for the lab to make some kind of interpretative comment on the set of results.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mustSupport" : true
        },
        {
          "id" : "DiagnosticReport.conclusionCode",
          "path" : "DiagnosticReport.conclusionCode",
          "short" : "No codes for a lipid panel",
          "definition" : "No codes for a lipid panel.",
          "comment" : "Not used in this context.",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cholesterol",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cholesterol",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cholesterol",
      "version" : "4.0.1",
      "name" : "Example Lipid Profile",
      "status" : "draft",
      "experimental" : true,
      "date" : "2012-05-12",
      "publisher" : "Grahame Grieve",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "grahame@healthintersections.com.au"
        }]
      }],
      "description" : "Describes how the lab report is used for a standard Lipid Profile - Cholesterol, Triglyceride and Cholesterol fractions. Uses LOINC codes",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "Measurements and simple assertions",
          "definition" : "Measurements and simple assertions made about a patient, device or other subject.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Cholesterol",
          "definition" : "Cholesterol.",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "35200-5",
              "display" : "Cholesterol [Moles/​volume] in Serum or Plasma"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Cholesterol value",
          "definition" : "Cholesterol value. If a result is not available, use the comments field.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.id",
          "path" : "Observation.value[x].id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.extension",
          "path" : "Observation.value[x].extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.value",
          "path" : "Observation.value[x].value",
          "short" : "Actual numerical value",
          "definition" : "Actual numerical value.",
          "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
          "requirements" : "Precision is handled implicitly in almost all cases of measurement.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Quantity.value",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "decimal"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.2  / CQ - N/A"
          },
          {
            "identity" : "rim",
            "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.comparator",
          "path" : "Observation.value[x].comparator",
          "short" : "< | <= | >= | > - how to understand the value",
          "definition" : "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
          "comment" : "No need for this on cholesterol.",
          "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Quantity.comparator",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "QuantityComparator"
            }],
            "strength" : "required",
            "description" : "How the Quantity should be understood and represented.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "SN.1  / CQ.1"
          },
          {
            "identity" : "rim",
            "map" : "IVL properties"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.unit",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "Observation.value[x].unit",
          "short" : "Unit representation",
          "definition" : "A human-readable form of the unit.",
          "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.unit",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "fixedString" : "mmol/L",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.unit"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.system",
          "path" : "Observation.value[x].system",
          "short" : "System that defines coded unit form",
          "definition" : "The identification of the system that provides the coded form of the unit.",
          "requirements" : "Need to know the system that defines the coded form of the unit.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.system",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "condition" : ["qty-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "CO.codeSystem, PQ.translation.codeSystem"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity.code",
          "path" : "Observation.value[x].code",
          "short" : "Coded form of the unit",
          "definition" : "A computer processable form of the unit in some unit representation system.",
          "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system.",
          "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Quantity.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mmol/L",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "(see OBX.6 etc.) / CQ.2"
          },
          {
            "identity" : "rim",
            "map" : "PQ.code, MO.currency, PQ.translation.code"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "May include statements about significant, unexpected or unreliable. values, or information about the source of the value where this may be relevant to the interpretation of the result.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "A fixed quantity (no comparator)",
          "definition" : "<4.5 mmol/L.",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 4.5
          },
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "qty-3",
            "severity" : "error",
            "human" : "If a code for the unit is present, the system SHALL also be present",
            "expression" : "code.empty() or system.exists()",
            "xpath" : "not(exists(f:code)) or exists(f:system)",
            "source" : "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key" : "sqty-1",
            "severity" : "error",
            "human" : "The comparator is not used on a SimpleQuantity",
            "expression" : "comparator.empty()",
            "xpath" : "not(exists(f:comparator))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          },
          {
            "identity" : "v2",
            "map" : "SN (see also Range) or CQ"
          },
          {
            "identity" : "rim",
            "map" : "PQ, IVL<PQ>, MO, CO, depending on the values"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Cholesterol",
          "definition" : "Cholesterol.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "35200-5",
              "display" : "Cholesterol [Moles/​volume] in Serum or Plasma"
            }]
          },
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "short" : "Cholesterol value",
          "definition" : "Cholesterol value. If a result is not available, use the comments field.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Quantity"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.value",
          "path" : "Observation.valueQuantity.value",
          "short" : "Actual numerical value",
          "definition" : "Actual numerical value.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "decimal"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.comparator",
          "path" : "Observation.valueQuantity.comparator",
          "comment" : "No need for this on cholesterol.",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "code"
          }]
        },
        {
          "id" : "Observation.valueQuantity.unit",
          "path" : "Observation.valueQuantity.unit",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "fixedString" : "mmol/L",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.system",
          "path" : "Observation.valueQuantity.system",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "fixedUri" : "http://unitsofmeasure.org",
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity.code",
          "path" : "Observation.valueQuantity.code",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "fixedCode" : "mmol/L",
          "mustSupport" : true
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "May include statements about significant, unexpected or unreliable. values, or information about the source of the value where this may be relevant to the interpretation of the result.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "definition" : "<4.5 mmol/L.",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 4.5
          }
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Range"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/triglyceride",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "triglyceride",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/triglyceride",
      "version" : "4.0.1",
      "name" : "Example Lipid Profile",
      "status" : "draft",
      "experimental" : true,
      "date" : "2012-05-12",
      "publisher" : "Grahame Grieve",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "grahame@healthintersections.com.au"
        }]
      }],
      "description" : "Triglyceride Result",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "Triglyceride Result",
          "definition" : "Group of elements for Triglyceride result.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Triglyceride",
          "definition" : "Triglyceride.",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "patternCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "35217-9",
              "display" : "Triglyceride [Moles/​volume] in Serum or Plasma"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "Triglyceride value",
          "definition" : "Triglyceride value. If a result is not available, use the comments field.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "comment" : "Per Australian NHF Recommendations.",
          "requirements" : "<2.0 mmol/L.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "Triglyceride Result",
          "definition" : "Group of elements for Triglyceride result.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "Triglyceride",
          "definition" : "Triglyceride.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "patternCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "35217-9",
              "display" : "Triglyceride [Moles/​volume] in Serum or Plasma"
            }]
          },
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "short" : "Triglyceride value",
          "definition" : "Triglyceride value. If a result is not available, use the comments field.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Quantity"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "comment" : "Per Australian NHF Recommendations.",
          "requirements" : "<2.0 mmol/L.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Range"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/hdlcholesterol",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "hdlcholesterol",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/hdlcholesterol",
      "version" : "4.0.1",
      "name" : "Example Lipid Profile",
      "status" : "draft",
      "experimental" : true,
      "date" : "2012-05-12",
      "publisher" : "Grahame Grieve",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "grahame@healthintersections.com.au"
        }]
      }],
      "description" : "HDL Cholesterol Result",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "HDL Cholesterol Result",
          "definition" : "Group of elements for HDL Cholesterol result.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "HDL Cholesterol",
          "definition" : "HDL Cholesterol.",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "2085-9",
              "display" : "HDL Cholesterol"
            }]
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "HDL Cholesterol value",
          "definition" : "HDL Cholesterol value. If a result is not available, use the comments field.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "A fixed quantity (no comparator)",
          "definition" : ">1.5 mmol/L.",
          "comment" : "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 1.5
          },
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "qty-3",
            "severity" : "error",
            "human" : "If a code for the unit is present, the system SHALL also be present",
            "expression" : "code.empty() or system.exists()",
            "xpath" : "not(exists(f:code)) or exists(f:system)",
            "source" : "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key" : "sqty-1",
            "severity" : "error",
            "human" : "The comparator is not used on a SimpleQuantity",
            "expression" : "comparator.empty()",
            "xpath" : "not(exists(f:comparator))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          },
          {
            "identity" : "v2",
            "map" : "SN (see also Range) or CQ"
          },
          {
            "identity" : "rim",
            "map" : "PQ, IVL<PQ>, MO, CO, depending on the values"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "High Range, if relevant",
          "definition" : "The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is >= 2.3).",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.high"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "HDL Cholesterol Result",
          "definition" : "Group of elements for HDL Cholesterol result.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "HDL Cholesterol",
          "definition" : "HDL Cholesterol.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "2085-9",
              "display" : "HDL Cholesterol"
            }]
          },
          "mustSupport" : true
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "short" : "HDL Cholesterol value",
          "definition" : "HDL Cholesterol value. If a result is not available, use the comments field.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Quantity"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "definition" : ">1.5 mmol/L.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 1.5
          }
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Range"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/ldlcholesterol",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "ldlcholesterol",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 1
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/ldlcholesterol",
      "version" : "4.0.1",
      "name" : "Example Lipid Profile",
      "status" : "draft",
      "experimental" : true,
      "date" : "2012-05-12",
      "publisher" : "Grahame Grieve",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "grahame@healthintersections.com.au"
        }]
      }],
      "description" : "LDL Cholesterol Result",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "sct-concept",
        "uri" : "http://snomed.info/conceptdomain",
        "name" : "SNOMED CT Concept Domain Binding"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "sct-attr",
        "uri" : "http://snomed.org/attributebinding",
        "name" : "SNOMED CT Attribute Binding"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Observation",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "LDL Cholesterol Result",
          "definition" : "Group of elements for LDL Cholesterol result.",
          "comment" : "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
          "alias" : ["Vital Signs",
          "Measurement",
          "Results",
          "Tests"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "obs-6",
            "severity" : "error",
            "human" : "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression" : "dataAbsentReason.empty() or value.empty()",
            "xpath" : "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key" : "obs-7",
            "severity" : "error",
            "human" : "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression" : "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath" : "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity|"
          },
          {
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.id",
          "path" : "Observation.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.meta",
          "path" : "Observation.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Observation.implicitRules",
          "path" : "Observation.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Observation.language",
          "path" : "Observation.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Observation.text",
          "path" : "Observation.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Observation.contained",
          "path" : "Observation.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.extension",
          "path" : "Observation.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.modifierExtension",
          "path" : "Observation.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.identifier",
          "path" : "Observation.identifier",
          "short" : "Business Identifier for observation",
          "definition" : "A unique identifier assigned to this observation.",
          "requirements" : "Allows observations to be distinguished and referenced.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "Observation.basedOn",
          "path" : "Observation.basedOn",
          "short" : "Fulfills plan, proposal or order",
          "definition" : "A plan, proposal or order that is fulfilled in whole or in part by this event.  For example, a MedicationRequest may require a patient to have laboratory test performed before  it is dispensed.",
          "requirements" : "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Fulfills"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.partOf",
          "path" : "Observation.partOf",
          "short" : "Part of referenced event",
          "definition" : "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure.",
          "comment" : "To link an Observation to an Encounter use `encounter`.  See the  [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.",
          "alias" : ["Container"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.partOf",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
            "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
            "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "http://hl7.org/fhir/StructureDefinition/Procedure",
            "http://hl7.org/fhir/StructureDefinition/Immunization",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.partOf"
          },
          {
            "identity" : "v2",
            "map" : "Varies by domain"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "Observation.status",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "default: final"
          }],
          "path" : "Observation.status",
          "short" : "registered | preliminary | final | amended +",
          "definition" : "The status of the result value.",
          "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
          "requirements" : "Need to track the status of individual results. Some results are finalized before the whole report is finalized.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationStatus"
            }],
            "strength" : "required",
            "description" : "Codes providing the status of an observation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 445584004 |Report by finality status|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-11"
          },
          {
            "identity" : "rim",
            "map" : "status  Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
          }]
        },
        {
          "id" : "Observation.category",
          "path" : "Observation.category",
          "short" : "Classification of  type of observation",
          "definition" : "A code that classifies the general type of observation being made.",
          "comment" : "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
          "requirements" : "Used for filtering what observations are retrieved and displayed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCategory"
            }],
            "strength" : "preferred",
            "description" : "Codes for high level observation categories.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-category"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          }]
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "LDL Cholesterol -measured or calculated per code",
          "definition" : "LDL Cholesterol -measured or calculated per code.",
          "comment" : "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "alias" : ["Name"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "LDLCodes"
            }],
            "strength" : "required",
            "description" : "LDL Cholesterol codes - measured or calculated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ldlcholesterol-codes|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "sct-attr",
            "map" : "116680003 |Is a|"
          }]
        },
        {
          "id" : "Observation.subject",
          "path" : "Observation.subject",
          "short" : "Who and/or what the observation is about",
          "definition" : "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",
          "comment" : "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
          "requirements" : "Observations have no value if you don't know who or what they're about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=RTGT] "
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.focus",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "Observation.focus",
          "short" : "What the observation is about, when it is not about the subject of record",
          "definition" : "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
          "comment" : "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.focus",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Observation.encounter",
          "path" : "Observation.encounter",
          "short" : "Healthcare event during which this observation is made",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
          "requirements" : "For some observations it may be important to know the link between an observation and a particular encounter.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.effective[x]",
          "path" : "Observation.effective[x]",
          "short" : "Clinically relevant time/time-period for observation",
          "definition" : "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
          "requirements" : "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
          "alias" : ["Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "Observation.issued",
          "path" : "Observation.issued",
          "short" : "Date/Time this version was made available",
          "definition" : "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",
          "comment" : "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=AUT].time"
          }]
        },
        {
          "id" : "Observation.performer",
          "path" : "Observation.performer",
          "short" : "Who is responsible for the observation",
          "definition" : "Who was responsible for asserting the observed value as \"true\".",
          "requirements" : "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "Observation.value[x]",
          "path" : "Observation.value[x]",
          "slicing" : {
            "discriminator" : [{
              "type" : "type",
              "path" : "$this"
            }],
            "ordered" : false,
            "rules" : "closed"
          },
          "short" : "Actual result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.value[x]:valueQuantity",
          "path" : "Observation.value[x]",
          "sliceName" : "valueQuantity",
          "short" : "LDL Cholesterol value",
          "definition" : "LDL Cholesterol value. If a result is not available, use the comments field.",
          "comment" : "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          }],
          "condition" : ["obs-7"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.dataAbsentReason",
          "path" : "Observation.dataAbsentReason",
          "short" : "Why the result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.value[x] is missing.",
          "comment" : "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "comment" : "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
          "requirements" : "Need to be able to provide free text additional information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
          },
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code=\"annotation\"].value"
          }]
        },
        {
          "id" : "Observation.bodySite",
          "path" : "Observation.bodySite",
          "short" : "Observed body part",
          "definition" : "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
          "comment" : "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.bodySite",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BodySite"
            }],
            "strength" : "example",
            "description" : "Codes describing anatomical locations. May include laterality.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123037004 |Body structure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-20"
          },
          {
            "identity" : "rim",
            "map" : "targetSiteCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "718497002 |Inherent location|"
          }]
        },
        {
          "id" : "Observation.method",
          "path" : "Observation.method",
          "short" : "How it was done",
          "definition" : "Indicates the mechanism used to perform the observation.",
          "comment" : "Only used if not implicit in code for Observation.code.",
          "requirements" : "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.method",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationMethod"
            }],
            "strength" : "example",
            "description" : "Methods for simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-methods"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-17"
          },
          {
            "identity" : "rim",
            "map" : "methodCode"
          }]
        },
        {
          "id" : "Observation.specimen",
          "path" : "Observation.specimen",
          "short" : "Specimen used for this observation",
          "definition" : "The specimen that was used when this observation was made.",
          "comment" : "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.specimen",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 123038009 |Specimen|"
          },
          {
            "identity" : "v2",
            "map" : "SPM segment"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SPC].specimen"
          },
          {
            "identity" : "sct-attr",
            "map" : "704319004 |Inherent in|"
          }]
        },
        {
          "id" : "Observation.device",
          "path" : "Observation.device",
          "short" : "(Measurement) Device",
          "definition" : "The device used to generate the observation data.",
          "comment" : "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.device",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/DeviceMetric"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 49062001 |Device|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-17 / PRT -10"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=DEV]"
          },
          {
            "identity" : "sct-attr",
            "map" : "424226004 |Using device|"
          }]
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "short" : "Provides guide for interpretation",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an \"OR\".   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "obs-3",
            "severity" : "error",
            "human" : "Must have at least a low or a high or text",
            "expression" : "low.exists() or high.exists() or text.exists()",
            "xpath" : "(exists(f:low) or exists(f:high)or exists(f:text))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "Observation.referenceRange.id",
          "path" : "Observation.referenceRange.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.extension",
          "path" : "Observation.referenceRange.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.referenceRange.modifierExtension",
          "path" : "Observation.referenceRange.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "short" : "Low Range, if relevant",
          "definition" : "The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is >=5 - <=9). If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is <=2.3).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.low",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "condition" : ["obs-3"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:IVL_PQ.low"
          }]
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "short" : "A fixed quantity (no comparator)",
          "definition" : "<3.0 mmol/L.",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.high",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 3.0
          },
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "qty-3",
            "severity" : "error",
            "human" : "If a code for the unit is present, the system SHALL also be present",
            "expression" : "code.empty() or system.exists()",
            "xpath" : "not(exists(f:code)) or exists(f:system)",
            "source" : "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key" : "sqty-1",
            "severity" : "error",
            "human" : "The comparator is not used on a SimpleQuantity",
            "expression" : "comparator.empty()",
            "xpath" : "not(exists(f:comparator))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Observation"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          },
          {
            "identity" : "v2",
            "map" : "SN (see also Range) or CQ"
          },
          {
            "identity" : "rim",
            "map" : "PQ, IVL<PQ>, MO, CO, depending on the values"
          }]
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "short" : "Reference range qualifier",
          "definition" : "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
          "requirements" : "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc.,  - for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeMeaning"
            }],
            "strength" : "preferred",
            "description" : "Code for the meaning of a reference range.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-meaning"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "short" : "Reference range population",
          "definition" : "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.  Multiple `appliesTo`  are interpreted as an \"AND\" of the target populations.  For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
          "comment" : "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
          "requirements" : "Need to be able to identify the target population for proper interpretation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.appliesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationRangeType"
            }],
            "strength" : "example",
            "description" : "Codes identifying the population the reference range applies to.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values| OR  \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR  \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-10"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "short" : "Applicable age range, if relevant",
          "definition" : "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
          "requirements" : "Some analytes vary greatly over age.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.referenceRange.age",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
          }]
        },
        {
          "id" : "Observation.referenceRange.text",
          "path" : "Observation.referenceRange.text",
          "short" : "Text based reference range in an observation",
          "definition" : "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.referenceRange.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX-7"
          },
          {
            "identity" : "rim",
            "map" : "value:ST"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "short" : "Related resource that belongs to the Observation group",
          "definition" : "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
          "comment" : "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html)  into a final score and represent the score as an Observation.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.hasMember",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship"
          }]
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "short" : "Related measurements the observation is made from",
          "definition" : "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
          "comment" : "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Observation.derivedFrom",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/DocumentReference",
            "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
            "http://hl7.org/fhir/StructureDefinition/Media",
            "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
            "http://hl7.org/fhir/StructureDefinition/Observation",
            "http://hl7.org/fhir/StructureDefinition/MolecularSequence"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "Relationships established by OBX-4 usage"
          },
          {
            "identity" : "rim",
            "map" : ".targetObservation"
          }]
        },
        {
          "id" : "Observation.component",
          "path" : "Observation.component",
          "short" : "Component results",
          "definition" : "Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
          "comment" : "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "containment by OBX-4?"
          },
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=COMP]"
          }]
        },
        {
          "id" : "Observation.component.id",
          "path" : "Observation.component.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.extension",
          "path" : "Observation.component.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Observation.component.modifierExtension",
          "path" : "Observation.component.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Observation.component.code",
          "path" : "Observation.component.code",
          "short" : "Type of component observation (code / type)",
          "definition" : "Describes what was observed. Sometimes this is called the observation \"code\".",
          "comment" : "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
          "requirements" : "Knowing what kind of observation is being made is essential to understanding the observation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationCode"
            }],
            "strength" : "example",
            "description" : "Codes identifying names of simple observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "sct-concept",
            "map" : "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-3"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "Observation.component.value[x]",
          "path" : "Observation.component.value[x]",
          "short" : "Actual component result",
          "definition" : "The information determined as a result of making the observation, if the information has a simple value.",
          "comment" : "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.",
          "requirements" : "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "string"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "time"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "363714003 |Interprets| < 441742003 |Evaluation finding|"
          },
          {
            "identity" : "v2",
            "map" : "OBX.2, OBX.5, OBX.6"
          },
          {
            "identity" : "rim",
            "map" : "value"
          },
          {
            "identity" : "sct-attr",
            "map" : "363714003 |Interprets|"
          }]
        },
        {
          "id" : "Observation.component.dataAbsentReason",
          "path" : "Observation.component.dataAbsentReason",
          "short" : "Why the component result is missing",
          "definition" : "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
          "comment" : "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
          "requirements" : "For many results it is necessary to handle exceptional values in measurements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Observation.component.dataAbsentReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["obs-6"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationValueAbsentReason"
            }],
            "strength" : "extensible",
            "description" : "Codes specifying why the result (`Observation.value[x]`) is missing.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/data-absent-reason"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "value.nullFlavor"
          }]
        },
        {
          "id" : "Observation.component.interpretation",
          "path" : "Observation.component.interpretation",
          "short" : "High, low, normal, etc.",
          "definition" : "A categorical assessment of an observation value.  For example, high, low, normal.",
          "comment" : "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
          "requirements" : "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
          "alias" : ["Abnormal Flag"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.interpretation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ObservationInterpretation"
            }],
            "strength" : "extensible",
            "description" : "Codes identifying interpretations of observations.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-interpretation"
          },
          "mapping" : [{
            "identity" : "sct-concept",
            "map" : "< 260245000 |Findings values|"
          },
          {
            "identity" : "v2",
            "map" : "OBX-8"
          },
          {
            "identity" : "rim",
            "map" : "interpretationCode"
          },
          {
            "identity" : "sct-attr",
            "map" : "363713009 |Has interpretation|"
          }]
        },
        {
          "id" : "Observation.component.referenceRange",
          "path" : "Observation.component.referenceRange",
          "short" : "Provides guide for interpretation of component result",
          "definition" : "Guidance on how to interpret the value by comparison to a normal or recommended range.",
          "comment" : "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
          "requirements" : "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Observation.component.referenceRange",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Observation.referenceRange",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX.7"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Observation",
          "path" : "Observation",
          "short" : "LDL Cholesterol Result",
          "definition" : "Group of elements for LDL Cholesterol result.",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "Observation.code",
          "path" : "Observation.code",
          "short" : "LDL Cholesterol -measured or calculated per code",
          "definition" : "LDL Cholesterol -measured or calculated per code.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "LDLCodes"
            }],
            "strength" : "required",
            "description" : "LDL Cholesterol codes - measured or calculated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ldlcholesterol-codes|4.0.1"
          }
        },
        {
          "id" : "Observation.valueQuantity",
          "path" : "Observation.valueQuantity",
          "short" : "LDL Cholesterol value",
          "definition" : "LDL Cholesterol value. If a result is not available, use the comments field.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Quantity"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.interpretation",
          "path" : "Observation.interpretation",
          "short" : "+ | ++ | +++ | - | -- | ---",
          "definition" : "+ | ++ | +++ | - | -- | ---.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.note",
          "path" : "Observation.note",
          "short" : "Comments about result",
          "definition" : "Comments about result.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }],
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange",
          "path" : "Observation.referenceRange",
          "min" : 1,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "Observation.referenceRange.low",
          "path" : "Observation.referenceRange.low",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.referenceRange.high",
          "path" : "Observation.referenceRange.high",
          "definition" : "<3.0 mmol/L.",
          "comment" : "Per Australian NHF Recommendations.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Quantity",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
          }],
          "fixedQuantity" : {
            "value" : 3.0
          }
        },
        {
          "id" : "Observation.referenceRange.type",
          "path" : "Observation.referenceRange.type",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.appliesTo",
          "path" : "Observation.referenceRange.appliesTo",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        },
        {
          "id" : "Observation.referenceRange.age",
          "path" : "Observation.referenceRange.age",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Range"
          }]
        },
        {
          "id" : "Observation.hasMember",
          "path" : "Observation.hasMember",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "Observation.derivedFrom",
          "path" : "Observation.derivedFrom",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/diagnosticreport-genetics",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "diagnosticreport-genetics",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 3
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/diagnosticreport-genetics",
      "version" : "4.0.1",
      "name" : "DiagnosticReport-Genetics",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-10-09",
      "publisher" : "Health Level Seven International (Clinical Genomics)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/clingenomics"
        }]
      }],
      "description" : "Describes how the DiagnosticReport resource is used to report structured genetic test results",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "DiagnosticReport",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "short" : "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports",
          "definition" : "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.",
          "comment" : "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing.",
          "alias" : ["Report",
          "Test",
          "Result",
          "Results",
          "Labs",
          "Laboratory"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "v2",
            "map" : "ORU -> OBR"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.id",
          "path" : "DiagnosticReport.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.meta",
          "path" : "DiagnosticReport.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.implicitRules",
          "path" : "DiagnosticReport.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.language",
          "path" : "DiagnosticReport.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "DiagnosticReport.text",
          "path" : "DiagnosticReport.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "DiagnosticReport.contained",
          "path" : "DiagnosticReport.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.extension",
          "path" : "DiagnosticReport.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "DiagnosticReport.extension:AssessedCondition",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "AssessedCondition",
          "short" : "AssessedCondition",
          "definition" : "Used to denote condition context for genetic testing, which may influence reported variants and interpretation for large genomic testing panels e.g. lung cancer or familial breast cancer.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.extension:FamilyMemberHistory",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "FamilyMemberHistory",
          "short" : "FamilyHistory",
          "definition" : "Significant health events and conditions for a person related to the patient relevant in the context of care for the patient.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsFamilyMemberHistory"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.extension:Analysis",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "Analysis",
          "short" : "Analysis",
          "definition" : "Knowledge-based comments on the effect of the sequence on patient's condition/medication reaction.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAnalysis"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.extension:References",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "References",
          "short" : "References",
          "definition" : "Additional bibliographic reference information about genetics, medications, clinical trials, etc. associated with knowledge-based information on genetics/genetic condition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsReferences"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.modifierExtension",
          "path" : "DiagnosticReport.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.identifier",
          "path" : "DiagnosticReport.identifier",
          "short" : "Business identifier for report",
          "definition" : "Identifiers assigned to this report by the performer or other systems.",
          "comment" : "Usually assigned by the Information System of the diagnostic service provider (filler id).",
          "requirements" : "Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context.",
          "alias" : ["ReportID",
          "Filler ID",
          "Placer ID"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBR-51/ for globally unique filler ID  - OBR-3 , For non-globally unique filler-id the flller/placer number must be combined with the universal service Id -  OBR-2(if present)+OBR-3+OBR-4"
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "DiagnosticReport.basedOn",
          "path" : "DiagnosticReport.basedOn",
          "short" : "What was requested",
          "definition" : "Details concerning a service requested.",
          "comment" : "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.",
          "requirements" : "This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Request"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC? OBR-2/3?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "DiagnosticReport.status",
          "path" : "DiagnosticReport.status",
          "short" : "registered | partial | preliminary | final +",
          "definition" : "The status of the diagnostic report.",
          "requirements" : "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportStatus"
            }],
            "strength" : "required",
            "description" : "The status of the diagnostic report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "v2",
            "map" : "OBR-25 (not 1:1 mapping)"
          },
          {
            "identity" : "rim",
            "map" : "statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type \"revise\""
          }]
        },
        {
          "id" : "DiagnosticReport.category",
          "path" : "DiagnosticReport.category",
          "short" : "Service category",
          "definition" : "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.",
          "comment" : "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.",
          "alias" : ["Department",
          "Sub-department",
          "Service",
          "Discipline"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticServiceSection"
            }],
            "strength" : "example",
            "description" : "Codes for diagnostic service sections.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "v2",
            "map" : "OBR-24"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code"
          }]
        },
        {
          "id" : "DiagnosticReport.code",
          "path" : "DiagnosticReport.code",
          "short" : "Name/Code for this diagnostic report",
          "definition" : "A code or name that describes this diagnostic report.",
          "alias" : ["Type"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportCodes"
            }],
            "strength" : "preferred",
            "description" : "Codes that describe Diagnostic Reports.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/report-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "DiagnosticReport.subject",
          "path" : "DiagnosticReport.subject",
          "short" : "The subject of the report - usually, but not always, the patient",
          "definition" : "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.",
          "requirements" : "SHALL know the subject context.",
          "alias" : ["Patient"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3 (no HL7 v2 mapping for Group or Device)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "DiagnosticReport.encounter",
          "path" : "DiagnosticReport.encounter",
          "short" : "Health care event when test ordered",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests).",
          "requirements" : "Links the request to the Encounter context.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1-19"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.effective[x]",
          "path" : "DiagnosticReport.effective[x]",
          "short" : "Clinically relevant time/time-period for report",
          "definition" : "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
          "requirements" : "Need to know where in the patient history to file/present this report.",
          "alias" : ["Observation time",
          "Effective Time",
          "Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-7"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "DiagnosticReport.issued",
          "path" : "DiagnosticReport.issued",
          "short" : "DateTime this version was made",
          "definition" : "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.",
          "comment" : "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.",
          "requirements" : "Clinicians need to be able to check the date that the report was released.",
          "alias" : ["Date published",
          "Date Issued",
          "Date Verified"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR-22"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=VRF or AUT].time"
          }]
        },
        {
          "id" : "DiagnosticReport.performer",
          "path" : "DiagnosticReport.performer",
          "short" : "Responsible Diagnostic Service",
          "definition" : "The diagnostic service that is responsible for issuing the report.",
          "comment" : "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Laboratory",
          "Service",
          "Practitioner",
          "Department",
          "Company",
          "Authorized by",
          "Director"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "PRT-8 (where this PRT-4-Participation = \"PO\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.resultsInterpreter",
          "path" : "DiagnosticReport.resultsInterpreter",
          "short" : "Primary result interpreter",
          "definition" : "The practitioner or organization that is responsible for the report's conclusions and interpretations.",
          "comment" : "Might not be the same entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Analyzed by",
          "Reported by"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.resultsInterpreter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBR-32, PRT-8 (where this PRT-4-Participation = \"PI\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.specimen",
          "path" : "DiagnosticReport.specimen",
          "short" : "Specimens this report is based on",
          "definition" : "Details about the specimens on which this diagnostic report is based.",
          "comment" : "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.",
          "requirements" : "Need to be able to report information about the collected specimens on which the report is based.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.specimen",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SPM"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          }]
        },
        {
          "id" : "DiagnosticReport.result",
          "path" : "DiagnosticReport.result",
          "short" : "Observations",
          "definition" : "[Observations](http://hl7.org/fhir/observation.html)  that are part of this diagnostic report.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.imagingStudy",
          "path" : "DiagnosticReport.imagingStudy",
          "short" : "Reference to full details of imaging associated with the diagnostic report",
          "definition" : "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.",
          "comment" : "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.imagingStudy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.media",
          "path" : "DiagnosticReport.media",
          "short" : "Key images associated with this report",
          "definition" : "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).",
          "requirements" : "Many diagnostic services include images in the report as part of their service.",
          "alias" : ["DICOM",
          "Slides",
          "Scans"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.media",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.media.id",
          "path" : "DiagnosticReport.media.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.extension",
          "path" : "DiagnosticReport.media.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.modifierExtension",
          "path" : "DiagnosticReport.media.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.media.comment",
          "path" : "DiagnosticReport.media.comment",
          "short" : "Comment about the image (e.g. explanation)",
          "definition" : "A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features.",
          "comment" : "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.",
          "requirements" : "The provider of the report should make a comment about each image included in the report.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.comment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }]
        },
        {
          "id" : "DiagnosticReport.media.link",
          "path" : "DiagnosticReport.media.link",
          "short" : "Reference to the image source",
          "definition" : "Reference to the image source.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.link",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Media"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".value.reference"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusion",
          "path" : "DiagnosticReport.conclusion",
          "short" : "Clinical conclusion (interpretation) of test results",
          "definition" : "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.",
          "requirements" : "Need to be able to provide a conclusion that is not lost among the basic result data.",
          "alias" : ["Report"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.conclusion",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusionCode",
          "path" : "DiagnosticReport.conclusionCode",
          "short" : "Codes for the clinical conclusion of test results",
          "definition" : "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "DiagnosticReport.conclusionCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AdjunctDiagnosis"
            }],
            "strength" : "example",
            "description" : "Diagnosis codes provided as adjuncts to the report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)"
          }]
        },
        {
          "id" : "DiagnosticReport.presentedForm",
          "path" : "DiagnosticReport.presentedForm",
          "short" : "Entire report as issued",
          "definition" : "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.",
          "comment" : "\"application/pdf\" is recommended as the most reliable and interoperable in this context.",
          "requirements" : "Gives laboratory the ability to provide its own fully formatted report for clinical fidelity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.presentedForm",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Attachment"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "text (type=ED)"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "DiagnosticReport.extension:AssessedCondition",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "AssessedCondition",
          "short" : "AssessedCondition",
          "definition" : "Used to denote condition context for genetic testing, which may influence reported variants and interpretation for large genomic testing panels e.g. lung cancer or familial breast cancer.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:FamilyMemberHistory",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "FamilyMemberHistory",
          "short" : "FamilyHistory",
          "definition" : "Significant health events and conditions for a person related to the patient relevant in the context of care for the patient.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsFamilyMemberHistory"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:Analysis",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "Analysis",
          "short" : "Analysis",
          "definition" : "Knowledge-based comments on the effect of the sequence on patient's condition/medication reaction.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAnalysis"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:References",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "References",
          "short" : "References",
          "definition" : "Additional bibliographic reference information about genetics, medications, clinical trials, etc. associated with knowledge-based information on genetics/genetic condition.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsReferences"]
          }]
        },
        {
          "id" : "DiagnosticReport.conclusionCode",
          "path" : "DiagnosticReport.conclusionCode",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "CodeableConcept"
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/hlaresult",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "hlaresult",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 3
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "oo"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/hlaresult",
      "version" : "4.0.1",
      "name" : "Profile for HLA Genotyping Results",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-10-09",
      "publisher" : "Health Level Seven International (Clinical Genomics)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/clingenomics"
        }]
      }],
      "description" : "Describes how the HLA genotyping results",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "DiagnosticReport",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "short" : "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports",
          "definition" : "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.",
          "comment" : "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing.",
          "alias" : ["Report",
          "Test",
          "Result",
          "Results",
          "Labs",
          "Laboratory"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "v2",
            "map" : "ORU -> OBR"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.id",
          "path" : "DiagnosticReport.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.meta",
          "path" : "DiagnosticReport.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.implicitRules",
          "path" : "DiagnosticReport.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "DiagnosticReport.language",
          "path" : "DiagnosticReport.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "DiagnosticReport.text",
          "path" : "DiagnosticReport.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "DiagnosticReport.contained",
          "path" : "DiagnosticReport.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.extension",
          "path" : "DiagnosticReport.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "DiagnosticReport.extension:allele-database",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "allele-database",
          "short" : "Allele Database",
          "definition" : "Allele Database.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-allele-database"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.extension:glstring",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "glstring",
          "short" : "Glstring",
          "definition" : "Glstring.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-glstring"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.extension:haploid",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "haploid",
          "short" : "Haploid",
          "definition" : "Haploid.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-haploid"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.extension:method",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "method",
          "short" : "The platform, methodology and software applied at the time of the\rgenotyping",
          "definition" : "The platform, methodology and software applied at the time of the\rgenotyping.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-method"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "DiagnosticReport.modifierExtension",
          "path" : "DiagnosticReport.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.identifier",
          "path" : "DiagnosticReport.identifier",
          "short" : "Business identifier for report",
          "definition" : "Identifiers assigned to this report by the performer or other systems.",
          "comment" : "Usually assigned by the Information System of the diagnostic service provider (filler id).",
          "requirements" : "Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context.",
          "alias" : ["ReportID",
          "Filler ID",
          "Placer ID"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "v2",
            "map" : "OBR-51/ for globally unique filler ID  - OBR-3 , For non-globally unique filler-id the flller/placer number must be combined with the universal service Id -  OBR-2(if present)+OBR-3+OBR-4"
          },
          {
            "identity" : "rim",
            "map" : "id"
          }]
        },
        {
          "id" : "DiagnosticReport.basedOn",
          "path" : "DiagnosticReport.basedOn",
          "short" : "What was requested",
          "definition" : "Details concerning a service requested.",
          "comment" : "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.",
          "requirements" : "This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon.",
          "alias" : ["Request"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.basedOn",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CarePlan",
            "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.basedOn"
          },
          {
            "identity" : "v2",
            "map" : "ORC? OBR-2/3?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=FLFS].target"
          }]
        },
        {
          "id" : "DiagnosticReport.status",
          "path" : "DiagnosticReport.status",
          "short" : "registered | partial | preliminary | final +",
          "definition" : "The status of the diagnostic report.",
          "requirements" : "Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportStatus"
            }],
            "strength" : "required",
            "description" : "The status of the diagnostic report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "v2",
            "map" : "OBR-25 (not 1:1 mapping)"
          },
          {
            "identity" : "rim",
            "map" : "statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type \"revise\""
          }]
        },
        {
          "id" : "DiagnosticReport.category",
          "path" : "DiagnosticReport.category",
          "short" : "Service category",
          "definition" : "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.",
          "comment" : "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.",
          "alias" : ["Department",
          "Sub-department",
          "Service",
          "Discipline"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticServiceSection"
            }],
            "strength" : "example",
            "description" : "Codes for diagnostic service sections.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "v2",
            "map" : "OBR-24"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code"
          }]
        },
        {
          "id" : "DiagnosticReport.code",
          "path" : "DiagnosticReport.code",
          "short" : "Name/Code for this diagnostic report",
          "definition" : "A code or name that describes this diagnostic report.",
          "alias" : ["Type"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiagnosticReportCodes"
            }],
            "strength" : "preferred",
            "description" : "Codes that describe Diagnostic Reports.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/report-codes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }]
        },
        {
          "id" : "DiagnosticReport.subject",
          "path" : "DiagnosticReport.subject",
          "short" : "The subject of the report - usually, but not always, the patient",
          "definition" : "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.",
          "requirements" : "SHALL know the subject context.",
          "alias" : ["Patient"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "v2",
            "map" : "PID-3 (no HL7 v2 mapping for Group or Device)"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "DiagnosticReport.encounter",
          "path" : "DiagnosticReport.encounter",
          "short" : "Health care event when test ordered",
          "definition" : "The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.",
          "comment" : "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests).",
          "requirements" : "Links the request to the Encounter context.",
          "alias" : ["Context"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.encounter"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "v2",
            "map" : "PV1-19"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.effective[x]",
          "path" : "DiagnosticReport.effective[x]",
          "short" : "Clinically relevant time/time-period for report",
          "definition" : "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.",
          "comment" : "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
          "requirements" : "Need to know where in the patient history to file/present this report.",
          "alias" : ["Observation time",
          "Effective Time",
          "Occurrence"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.effective[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "v2",
            "map" : "OBR-7"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime"
          }]
        },
        {
          "id" : "DiagnosticReport.issued",
          "path" : "DiagnosticReport.issued",
          "short" : "DateTime this version was made",
          "definition" : "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.",
          "comment" : "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.",
          "requirements" : "Clinicians need to be able to check the date that the report was released.",
          "alias" : ["Date published",
          "Date Issued",
          "Date Verified"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.issued",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "v2",
            "map" : "OBR-22"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=VRF or AUT].time"
          }]
        },
        {
          "id" : "DiagnosticReport.performer",
          "path" : "DiagnosticReport.performer",
          "short" : "Responsible Diagnostic Service",
          "definition" : "The diagnostic service that is responsible for issuing the report.",
          "comment" : "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Laboratory",
          "Service",
          "Practitioner",
          "Department",
          "Company",
          "Authorized by",
          "Director"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.performer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "PRT-8 (where this PRT-4-Participation = \"PO\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.resultsInterpreter",
          "path" : "DiagnosticReport.resultsInterpreter",
          "short" : "Primary result interpreter",
          "definition" : "The practitioner or organization that is responsible for the report's conclusions and interpretations.",
          "comment" : "Might not be the same entity that takes responsibility for the clinical report.",
          "requirements" : "Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.",
          "alias" : ["Analyzed by",
          "Reported by"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.resultsInterpreter",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/CareTeam"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "v2",
            "map" : "OBR-32, PRT-8 (where this PRT-4-Participation = \"PI\")"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=PRF]"
          }]
        },
        {
          "id" : "DiagnosticReport.specimen",
          "path" : "DiagnosticReport.specimen",
          "short" : "Specimens this report is based on",
          "definition" : "Details about the specimens on which this diagnostic report is based.",
          "comment" : "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.",
          "requirements" : "Need to be able to report information about the collected specimens on which the report is based.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.specimen",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Specimen"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "SPM"
          },
          {
            "identity" : "rim",
            "map" : "participation[typeCode=SBJ]"
          }]
        },
        {
          "id" : "DiagnosticReport.result",
          "path" : "DiagnosticReport.result",
          "short" : "Observations",
          "definition" : "[Observations](http://hl7.org/fhir/observation.html)  that are part of this diagnostic report.",
          "comment" : "Observations can contain observations.",
          "requirements" : "Need to support individual results, or  groups of results, where the result grouping is arbitrary, but meaningful.",
          "alias" : ["Data",
          "Atomic Value",
          "Result",
          "Atomic result",
          "Data",
          "Test",
          "Analyte",
          "Battery",
          "Organizer"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.result",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Observation"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBXs"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.imagingStudy",
          "path" : "DiagnosticReport.imagingStudy",
          "short" : "Reference to full details of imaging associated with the diagnostic report",
          "definition" : "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.",
          "comment" : "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.imagingStudy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ImagingStudy"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]"
          }]
        },
        {
          "id" : "DiagnosticReport.media",
          "path" : "DiagnosticReport.media",
          "short" : "Key images associated with this report",
          "definition" : "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).",
          "requirements" : "Many diagnostic services include images in the report as part of their service.",
          "alias" : ["DICOM",
          "Slides",
          "Scans"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.media",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX?"
          },
          {
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=COMP].target"
          }]
        },
        {
          "id" : "DiagnosticReport.media.id",
          "path" : "DiagnosticReport.media.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.extension",
          "path" : "DiagnosticReport.media.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "DiagnosticReport.media.modifierExtension",
          "path" : "DiagnosticReport.media.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "DiagnosticReport.media.comment",
          "path" : "DiagnosticReport.media.comment",
          "short" : "Comment about the image (e.g. explanation)",
          "definition" : "A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features.",
          "comment" : "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.",
          "requirements" : "The provider of the report should make a comment about each image included in the report.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.comment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }]
        },
        {
          "id" : "DiagnosticReport.media.link",
          "path" : "DiagnosticReport.media.link",
          "short" : "Reference to the image source",
          "definition" : "Reference to the image source.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.media.link",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Media"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".value.reference"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusion",
          "path" : "DiagnosticReport.conclusion",
          "short" : "Clinical conclusion (interpretation) of test results",
          "definition" : "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.",
          "requirements" : "Need to be able to provide a conclusion that is not lost among the basic result data.",
          "alias" : ["Report"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DiagnosticReport.conclusion",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=\"SPRT\"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)"
          }]
        },
        {
          "id" : "DiagnosticReport.conclusionCode",
          "path" : "DiagnosticReport.conclusionCode",
          "short" : "Codes for the clinical conclusion of test results",
          "definition" : "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.conclusionCode",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AdjunctDiagnosis"
            }],
            "strength" : "example",
            "description" : "Diagnosis codes provided as adjuncts to the report.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)"
          }]
        },
        {
          "id" : "DiagnosticReport.presentedForm",
          "path" : "DiagnosticReport.presentedForm",
          "short" : "Entire report as issued",
          "definition" : "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.",
          "comment" : "\"application/pdf\" is recommended as the most reliable and interoperable in this context.",
          "requirements" : "Gives laboratory the ability to provide its own fully formatted report for clinical fidelity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DiagnosticReport.presentedForm",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Attachment"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OBX"
          },
          {
            "identity" : "rim",
            "map" : "text (type=ED)"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "DiagnosticReport",
          "path" : "DiagnosticReport",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "DiagnosticReport.extension:allele-database",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "allele-database",
          "short" : "Allele Database",
          "definition" : "Allele Database.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-allele-database"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:glstring",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "glstring",
          "short" : "Glstring",
          "definition" : "Glstring.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-glstring"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:haploid",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "haploid",
          "short" : "Haploid",
          "definition" : "Haploid.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-haploid"]
          }]
        },
        {
          "id" : "DiagnosticReport.extension:method",
          "path" : "DiagnosticReport.extension",
          "sliceName" : "method",
          "short" : "The platform, methodology and software applied at the time of the\rgenotyping",
          "definition" : "The platform, methodology and software applied at the time of the\rgenotyping.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/hla-genotyping-results-method"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/synthesis",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "synthesis",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 0
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/synthesis",
      "version" : "4.0.1",
      "name" : "Evidence Synthesis Profile",
      "status" : "draft",
      "experimental" : false,
      "date" : "2018-10-31",
      "publisher" : "Health Level Seven, Inc. - Clinical Decision Support Workgroup",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/dss/index.cfm"
        }]
      }],
      "description" : "Explanation of what this profile contains/is for.",
      "purpose" : "Need to be able to define and reuse the definition of individual elements of a research question.",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Evidence",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Evidence",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Evidence",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "0;0"
          }],
          "path" : "Evidence",
          "short" : "A research context or question",
          "definition" : "The Evidence resource describes the conditional state (population and any exposures being compared within the population) and outcome (if specified) that the knowledge (evidence, assertion, recommendation) is about.",
          "comment" : "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "evi-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/Evidence"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "Evidence.id",
          "path" : "Evidence.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Evidence.meta",
          "path" : "Evidence.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Evidence.implicitRules",
          "path" : "Evidence.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Evidence.language",
          "path" : "Evidence.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Evidence.text",
          "path" : "Evidence.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Evidence.contained",
          "path" : "Evidence.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Evidence.extension",
          "path" : "Evidence.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Evidence.modifierExtension",
          "path" : "Evidence.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Evidence.url",
          "path" : "Evidence.url",
          "short" : "Canonical identifier for this evidence, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this evidence 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 at which an authoritative instance of this evidence is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence is stored on different servers.",
          "comment" : "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.\n\nThe 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). \n\nIn 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" : "Allows the evidence to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "Evidence.identifier",
          "path" : "Evidence.identifier",
          "short" : "Additional identifier for the evidence",
          "definition" : "A formal identifier that is used to identify this evidence when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.version",
          "path" : "Evidence.version",
          "short" : "Business version of the evidence",
          "definition" : "The identifier that is used to identify this version of the evidence when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence 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" : "There may be different evidence 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 evidence with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "Evidence.name",
          "path" : "Evidence.name",
          "short" : "Name for this evidence (computer friendly)",
          "definition" : "A natural language name identifying the evidence. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Evidence.title",
          "path" : "Evidence.title",
          "short" : "Name for this evidence (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the evidence.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "Evidence.shortTitle",
          "path" : "Evidence.shortTitle",
          "short" : "Title for use in informal contexts",
          "definition" : "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.",
          "requirements" : "Need to be able to reference the content by a short description, but still provide a longer, more formal title for the content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.shortTitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "Evidence.subtitle",
          "path" : "Evidence.subtitle",
          "short" : "Subordinate title of the Evidence",
          "definition" : "An explanatory or alternate title for the Evidence giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Evidence.status",
          "path" : "Evidence.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this evidence. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of evidences that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Evidence.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "Evidence.date",
          "path" : "Evidence.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the evidence was published. 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 evidence changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "Evidence.publisher",
          "path" : "Evidence.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the evidence.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the evidence is the organization or individual primarily responsible for the maintenance and upkeep of the evidence. 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 evidence. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the evidence.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "Evidence.contact",
          "path" : "Evidence.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "Evidence.description",
          "path" : "Evidence.description",
          "short" : "Natural language description of the evidence",
          "definition" : "A free text natural language description of the evidence from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the evidence was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence 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 evidence is presumed to be the predominant language in the place the evidence was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "Evidence.note",
          "path" : "Evidence.note",
          "short" : "Used for footnotes or explanatory notes",
          "definition" : "A human-readable string to clarify or explain concepts about the resource.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.note",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Annotation"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Evidence.useContext",
          "path" : "Evidence.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 evidence instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "Evidence.jurisdiction",
          "path" : "Evidence.jurisdiction",
          "short" : "Intended jurisdiction for evidence (if applicable)",
          "definition" : "A legal or geographic region in which the evidence is intended to be used.",
          "comment" : "It may be possible for the evidence to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "Evidence.copyright",
          "path" : "Evidence.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the evidence and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the evidence and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.approvalDate",
          "path" : "Evidence.approvalDate",
          "short" : "When the evidence was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.lastReviewDate",
          "path" : "Evidence.lastReviewDate",
          "short" : "When the evidence was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.effectivePeriod",
          "path" : "Evidence.effectivePeriod",
          "short" : "When the evidence is expected to be used",
          "definition" : "The period during which the evidence content was or is planned to be in active use.",
          "comment" : "The effective period for a evidence  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the evidence are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Evidence.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.topic",
          "path" : "Evidence.topic",
          "short" : "The category of the Evidence, such as Education, Treatment, Assessment, etc.",
          "definition" : "Descriptive topics related to the content of the Evidence. Topics provide a high-level categorization grouping types of Evidences that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the Evidence so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          }
        },
        {
          "id" : "Evidence.author",
          "path" : "Evidence.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "Evidence.editor",
          "path" : "Evidence.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Evidence.reviewer",
          "path" : "Evidence.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Evidence.endorser",
          "path" : "Evidence.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Evidence.relatedArtifact",
          "path" : "Evidence.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Evidences must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Evidence.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Evidence.exposureBackground",
          "path" : "Evidence.exposureBackground",
          "short" : "What population?",
          "definition" : "A reference to a EvidenceVariable resource that defines the population for the research.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Evidence.exposureBackground",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Evidence.exposureVariant",
          "path" : "Evidence.exposureVariant",
          "short" : "What exposure?",
          "definition" : "A reference to a EvidenceVariable resource that defines the exposure for the research.",
          "min" : 1,
          "max" : "2",
          "base" : {
            "path" : "Evidence.exposureVariant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Evidence.outcome",
          "path" : "Evidence.outcome",
          "short" : "What outcome?",
          "definition" : "A reference to a EvidenceVariable resomece that defines the outcome for the research.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Evidence.outcome",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Evidence",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString" : "0;0"
          }],
          "path" : "Evidence",
          "comment" : "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
          "min" : 0,
          "max" : "*",
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "Evidence.url",
          "path" : "Evidence.url",
          "short" : "Canonical identifier for this evidence, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this evidence 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 at which an authoritative instance of this evidence is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence is stored on different servers.",
          "comment" : "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.\n\nThe 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). \n\nIn 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" : "Allows the evidence to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "Evidence.identifier",
          "path" : "Evidence.identifier",
          "short" : "Additional identifier for the evidence",
          "definition" : "A formal identifier that is used to identify this evidence when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Identifier"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "Evidence.version",
          "path" : "Evidence.version",
          "short" : "Business version of the evidence",
          "definition" : "The identifier that is used to identify this version of the evidence when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence 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" : "There may be different evidence 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 evidence with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "Evidence.title",
          "path" : "Evidence.title",
          "short" : "Name for this evidence (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the evidence.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "Evidence.shortTitle",
          "path" : "Evidence.shortTitle",
          "short" : "Title for use in informal contexts",
          "definition" : "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.",
          "requirements" : "Need to be able to reference the content by a short description, but still provide a longer, more formal title for the content.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "Evidence.subtitle",
          "path" : "Evidence.subtitle",
          "short" : "Subordinate title of the Evidence",
          "definition" : "An explanatory or alternate title for the Evidence giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "Evidence.status",
          "path" : "Evidence.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this evidence. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of evidences that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "code"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "Evidence.date",
          "path" : "Evidence.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the evidence was published. 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 evidence changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "Evidence.publisher",
          "path" : "Evidence.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the evidence.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the evidence is the organization or individual primarily responsible for the maintenance and upkeep of the evidence. 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 evidence. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the evidence.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "Evidence.contact",
          "path" : "Evidence.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "ContactDetail"
          }],
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "Evidence.description",
          "path" : "Evidence.description",
          "short" : "Natural language description of the evidence",
          "definition" : "A free text natural language description of the evidence from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the evidence was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence 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 evidence is presumed to be the predominant language in the place the evidence was created).",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "Evidence.note",
          "path" : "Evidence.note",
          "short" : "Used for footnotes or explanatory notes",
          "definition" : "A human-readable string to clarify or explain concepts about the resource.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Annotation"
          }]
        },
        {
          "id" : "Evidence.copyright",
          "path" : "Evidence.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the evidence and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the evidence and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.approvalDate",
          "path" : "Evidence.approvalDate",
          "short" : "When the evidence was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "date"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.lastReviewDate",
          "path" : "Evidence.lastReviewDate",
          "short" : "When the evidence was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "date"
          }],
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "Evidence.author",
          "path" : "Evidence.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "ContactDetail"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "Evidence.editor",
          "path" : "Evidence.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "ContactDetail"
          }]
        },
        {
          "id" : "Evidence.reviewer",
          "path" : "Evidence.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "ContactDetail"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "Evidence.relatedArtifact",
          "path" : "Evidence.relatedArtifact",
          "short" : "Additional documentation, citations, etc.",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Evidences must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "RelatedArtifact"
          }]
        },
        {
          "id" : "Evidence.exposureBackground",
          "path" : "Evidence.exposureBackground",
          "short" : "What population?",
          "definition" : "A reference to a EvidenceVariable resource that defines the population for the research.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }]
        },
        {
          "id" : "Evidence.exposureVariant",
          "path" : "Evidence.exposureVariant",
          "short" : "What exposure?",
          "definition" : "A reference to a EvidenceVariable resource that defines the exposure for the research.",
          "min" : 1,
          "max" : "2",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }]
        },
        {
          "id" : "Evidence.outcome",
          "path" : "Evidence.outcome",
          "short" : "What outcome?",
          "definition" : "A reference to a EvidenceVariable resomece that defines the outcome for the research.",
          "min" : 1,
          "max" : "*",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EvidenceVariable"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/clinicaldocument",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "clinicaldocument",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "sd"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/clinicaldocument",
      "version" : "4.0.1",
      "name" : "Clinical Document",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-03-17",
      "publisher" : "Health Level Seven, Inc. - Structured Documents WG",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org/special/committees/structure"
        }]
      }],
      "description" : "The Clinical Document profile constrains Composition to specify a clinical document (matching CDA). \n\nThe base Composition is a general resource for compositions or documents about any kind of subject that might be encountered in healthcare including such things as guidelines, medicines, etc. A clinical document is focused on documents related to the provision of care process, where the subject is a patient, a group of patients, or a closely related concept. A clinical document has additional requirements around confidentiality that do not apply in the same way to other kinds of documents.",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "cda",
        "uri" : "http://hl7.org/v3/cda",
        "name" : "CDA (R2)"
      },
      {
        "identity" : "fhirdocumentreference",
        "uri" : "http://hl7.org/fhir/documentreference",
        "name" : "FHIR DocumentReference"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Composition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Composition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Composition",
          "path" : "Composition",
          "short" : "A set of resources composed into a single coherent clinical statement with clinical attestation",
          "definition" : "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.).",
          "comment" : "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "rim",
            "map" : "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]"
          },
          {
            "identity" : "cda",
            "map" : "ClinicalDocument"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "when described by DocumentReference"
          }]
        },
        {
          "id" : "Composition.id",
          "path" : "Composition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Composition.meta",
          "path" : "Composition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Composition.implicitRules",
          "path" : "Composition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Composition.language",
          "path" : "Composition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Composition.text",
          "path" : "Composition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Composition.contained",
          "path" : "Composition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.extension",
          "path" : "Composition.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Composition.extension:versionNumber",
          "path" : "Composition.extension",
          "sliceName" : "versionNumber",
          "short" : "Version-specific identifier for composition",
          "definition" : "Version specific identifier for the composition, assigned when each version is created/updated.",
          "comment" : "While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Composition.modifierExtension",
          "path" : "Composition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.identifier",
          "path" : "Composition.identifier",
          "short" : "Version-independent identifier for the Composition",
          "definition" : "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.",
          "comment" : "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.identifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "Document.id / Document.setId"
          },
          {
            "identity" : "cda",
            "map" : ".setId"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.masterIdentifier"
          }]
        },
        {
          "id" : "Composition.status",
          "path" : "Composition.status",
          "short" : "preliminary | final | amended | entered-in-error",
          "definition" : "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.",
          "comment" : "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements.   \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.",
          "requirements" : "Need to be able to mark interim, amended, or withdrawn compositions or documents.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionStatus"
            }],
            "strength" : "required",
            "description" : "The workflow/clinical status of the composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "interim: .completionCode=\"IN\" & ./statusCode[isNormalDatatype()]=\"active\";  final: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and not(./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct()]);  amended: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct() and statusCode=\"completed\"];  withdrawn : .completionCode=NI &&  ./statusCode[isNormalDatatype()]=\"obsolete\""
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.status"
          }]
        },
        {
          "id" : "Composition.type",
          "path" : "Composition.type",
          "short" : "Kind of composition (LOINC if possible)",
          "definition" : "Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition.",
          "comment" : "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.",
          "requirements" : "Key metadata element describing the composition, used in searching/filtering.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentType"
            }],
            "strength" : "preferred",
            "description" : "Type of a composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/doc-typecodes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.type"
          }]
        },
        {
          "id" : "Composition.category",
          "path" : "Composition.category",
          "short" : "Categorization of Composition",
          "definition" : "A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type.",
          "comment" : "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
          "requirements" : "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentCategory"
            }],
            "strength" : "example",
            "description" : "High-level kind of a clinical document at a macro level.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/document-classcodes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumenttReference.category"
          }]
        },
        {
          "id" : "Composition.subject",
          "path" : "Composition.subject",
          "short" : "Who and/or what the composition is about",
          "definition" : "Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).",
          "comment" : "For clinical documents, this is usually the patient.",
          "requirements" : "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
          },
          {
            "identity" : "cda",
            "map" : ".recordTarget"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Composition.encounter",
          "path" : "Composition.encounter",
          "short" : "Context of the Composition",
          "definition" : "Describes the clinical encounter or type of care this documentation is associated with.",
          "requirements" : "Provides context for the composition and supports searching.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
          },
          {
            "identity" : "cda",
            "map" : ".componentOf.encompassingEncounter"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.context.encounter"
          }]
        },
        {
          "id" : "Composition.date",
          "path" : "Composition.date",
          "short" : "Composition editing time",
          "definition" : "The composition editing time, when the composition was last logically changed by the author.",
          "comment" : "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
          "requirements" : "dateTime is used for tracking, organizing versions and searching. Note that this is the time of *authoring*. When packaged in a document, [Bundle.timestamp](http://hl7.org/fhir/bundle-definitions.html#Bundle.timestamp) is the date of packaging.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.date",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime[type=\"TS\"]"
          },
          {
            "identity" : "cda",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.content.attachment.date, DocumentReference.created"
          }]
        },
        {
          "id" : "Composition.author",
          "path" : "Composition.author",
          "short" : "Who and/or what authored the composition",
          "definition" : "Identifies who is responsible for the information in the composition, not necessarily who typed it in.",
          "requirements" : "Identifies who is responsible for the content.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Composition.author",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.author"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".author.assignedAuthor"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.agent"
          }]
        },
        {
          "id" : "Composition.title",
          "path" : "Composition.title",
          "short" : "Human Readable name/title",
          "definition" : "Official human-readable label for the composition.",
          "comment" : "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.title",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./title"
          },
          {
            "identity" : "cda",
            "map" : ".title"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.description, DocumentReference.content.attachment.title"
          }]
        },
        {
          "id" : "Composition.confidentiality",
          "path" : "Composition.confidentiality",
          "short" : "As defined by affinity domain",
          "definition" : "The code specifying the level of confidentiality of the Composition.",
          "comment" : "The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.confidentiality",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentConfidentiality"
            }],
            "strength" : "required",
            "description" : "Codes specifying the level of confidentiality of the composition.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".confidentialityCode"
          },
          {
            "identity" : "cda",
            "map" : ".confidentialityCode"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.securityLabel"
          }]
        },
        {
          "id" : "Composition.attester",
          "path" : "Composition.attester",
          "short" : "Attests to accuracy of composition",
          "definition" : "A participant who has attested to the accuracy of the composition/document.",
          "comment" : "Only list each attester once.",
          "requirements" : "Identifies responsibility for the accuracy of the composition content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.attester",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator/.legalAuthenticator"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.authenticator"
          }]
        },
        {
          "id" : "Composition.attester.id",
          "path" : "Composition.attester.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.attester.extension",
          "path" : "Composition.attester.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.attester.modifierExtension",
          "path" : "Composition.attester.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.attester.mode",
          "path" : "Composition.attester.mode",
          "short" : "personal | professional | legal | official",
          "definition" : "The type of attestation the authenticator offers.",
          "requirements" : "Indicates the level of authority of the attestation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.mode",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionAttestationMode"
            }],
            "strength" : "required",
            "description" : "The way in which a person authenticated a composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "unique(./modeCode)"
          },
          {
            "identity" : "cda",
            "map" : "implied by .authenticator/.legalAuthenticator"
          }]
        },
        {
          "id" : "Composition.attester.time",
          "path" : "Composition.attester.time",
          "short" : "When the composition was attested",
          "definition" : "When the composition was attested by the party.",
          "requirements" : "Identifies when the information in the composition was deemed accurate.  (Things may have changed since then.).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.time",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./time[type=\"TS\" and isNormalDatatype()]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator.time"
          }]
        },
        {
          "id" : "Composition.attester.party",
          "path" : "Composition.attester.party",
          "short" : "Who attested the composition",
          "definition" : "Who attested the composition in the specified way.",
          "requirements" : "Identifies who has taken on the responsibility for accuracy of the composition content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.party",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : "./role[classCode=\"ASSIGNED\" and isNormalRole]/player[determinerCode=\"INST\" and classCode=(\"DEV\", \"PSN\") and isNormalEntity()] or ./role[classCode=\"ASSIGNED\" and isNormalRole and not(player)]/scoper[determinerCode=\"INST\" and classCode=\"ORG\" and isNormalEntity()]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator.assignedEnttty"
          }]
        },
        {
          "id" : "Composition.custodian",
          "path" : "Composition.custodian",
          "short" : "Organization which maintains the composition",
          "definition" : "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.",
          "comment" : "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.",
          "requirements" : "Identifies where to go to find the current version, where to report issues, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.custodian",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
          },
          {
            "identity" : "cda",
            "map" : ".custodian.assignedCustodian"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.custodian"
          }]
        },
        {
          "id" : "Composition.relatesTo",
          "path" : "Composition.relatesTo",
          "short" : "Relationships to other compositions/documents",
          "definition" : "Relationships that this composition has with other compositions or documents that already exist.",
          "comment" : "A document is a version specific composition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.relatesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo"
          }]
        },
        {
          "id" : "Composition.relatesTo.id",
          "path" : "Composition.relatesTo.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.relatesTo.extension",
          "path" : "Composition.relatesTo.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.relatesTo.modifierExtension",
          "path" : "Composition.relatesTo.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.relatesTo.code",
          "path" : "Composition.relatesTo.code",
          "short" : "replaces | transforms | signs | appends",
          "definition" : "The type of relationship that this composition has with anther composition or document.",
          "comment" : "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.relatesTo.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentRelationshipType"
            }],
            "strength" : "required",
            "description" : "The type of relationship between documents.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship.typeCode"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument.typeCode"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo.code"
          }]
        },
        {
          "id" : "Composition.relatesTo.target[x]",
          "path" : "Composition.relatesTo.target[x]",
          "short" : "Target of the relationship",
          "definition" : "The target composition/document of this relationship.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.relatesTo.target[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Composition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".target[classCode=\"DOC\", moodCode=\"EVN\"].id"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument.id"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo.target"
          }]
        },
        {
          "id" : "Composition.event",
          "path" : "Composition.event",
          "short" : "The clinical service(s) being documented",
          "definition" : "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
          "comment" : "The event needs to be consistent with the type element, though can provide further information if desired.",
          "requirements" : "Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
          },
          {
            "identity" : "cda",
            "map" : ".documentationOf.serviceEvent"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event"
          }]
        },
        {
          "id" : "Composition.event.id",
          "path" : "Composition.event.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.event.extension",
          "path" : "Composition.event.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.event.modifierExtension",
          "path" : "Composition.event.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.event.code",
          "path" : "Composition.event.code",
          "short" : "Code(s) that apply to the event being documented",
          "definition" : "This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act.",
          "comment" : "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentEventType"
            }],
            "strength" : "example",
            "description" : "This list of codes represents the main clinical acts being documented.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActCode"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event.code"
          }]
        },
        {
          "id" : "Composition.event.period",
          "path" : "Composition.event.period",
          "short" : "The period covered by the documentation",
          "definition" : "The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.event.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "cda",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event.period"
          }]
        },
        {
          "id" : "Composition.event.detail",
          "path" : "Composition.event.detail",
          "short" : "The event(s) being documented",
          "definition" : "The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event.detail",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].target"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "Section"
          }],
          "path" : "Composition.section",
          "short" : "Composition is broken into sections",
          "definition" : "The root of the sections that make up the composition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "cmp-1",
            "severity" : "error",
            "human" : "A section must contain at least one of text, entries, or sub-sections",
            "expression" : "text.exists() or entry.exists() or section.exists()",
            "xpath" : "exists(f:text) or exists(f:entry) or exists(f:section)"
          },
          {
            "key" : "cmp-2",
            "severity" : "error",
            "human" : "A section can only have an emptyReason if it is empty",
            "expression" : "emptyReason.empty() or entry.empty()",
            "xpath" : "not(exists(f:emptyReason) and exists(f:entry))"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity" : "cda",
            "map" : ".component.structuredBody.component.section"
          }]
        },
        {
          "id" : "Composition.section.id",
          "path" : "Composition.section.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.extension",
          "path" : "Composition.section.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.modifierExtension",
          "path" : "Composition.section.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.section.title",
          "path" : "Composition.section.title",
          "short" : "Label for section (e.g. for ToC)",
          "definition" : "The label for this particular section.  This will be part of the rendered content for the document, and is often used to build a table of contents.",
          "comment" : "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title,  or documents that only have a single section. Most Implementation Guides will make section title to be a required element.",
          "requirements" : "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
          "alias" : ["header",
          "label",
          "caption"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./title"
          },
          {
            "identity" : "cda",
            "map" : ".title"
          }]
        },
        {
          "id" : "Composition.section.code",
          "path" : "Composition.section.code",
          "short" : "Classification of section (recommended)",
          "definition" : "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
          "comment" : "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document.   \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.",
          "requirements" : "Provides computable standardized labels to topics within the document.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionSectionType"
            }],
            "strength" : "example",
            "description" : "Classification of a section of a composition/document.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/doc-section-codes"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          }]
        },
        {
          "id" : "Composition.section.author",
          "path" : "Composition.section.author",
          "short" : "Who and/or what authored the section",
          "definition" : "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
          "requirements" : "Identifies who is responsible for the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.author"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".author.assignedAuthor"
          }]
        },
        {
          "id" : "Composition.section.focus",
          "path" : "Composition.section.focus",
          "short" : "Who/what the section is about, when it is not about the subject of composition",
          "definition" : "The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).",
          "comment" : "Typically, sections in a doument are about the subject of the document, whether that is a  patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are  a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.focus",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "cda",
            "map" : ".subject? (CDA did not differentiate between subject and focus)"
          }]
        },
        {
          "id" : "Composition.section.text",
          "path" : "Composition.section.text",
          "short" : "Text summary of the section, for human interpretation",
          "definition" : "A human-readable narrative that contains the attested content of the section, 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.",
          "comment" : "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "condition" : ["cmp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".text"
          },
          {
            "identity" : "cda",
            "map" : ".text"
          }]
        },
        {
          "id" : "Composition.section.mode",
          "path" : "Composition.section.mode",
          "short" : "working | snapshot | changes",
          "definition" : "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
          "comment" : "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
          "requirements" : "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.mode",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionMode"
            }],
            "strength" : "required",
            "description" : "The processing mode that applies to this section.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.orderedBy",
          "path" : "Composition.section.orderedBy",
          "short" : "Order of section entries",
          "definition" : "Specifies the order applied to the items in the section entries.",
          "comment" : "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
          "requirements" : "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.orderedBy",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionEntryOrder"
            }],
            "strength" : "preferred",
            "description" : "What order applies to the items in the entry.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-order"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.entry",
          "path" : "Composition.section.entry",
          "short" : "A reference to data that supports this section",
          "definition" : "A reference to the actual resource from which the narrative in the section is derived.",
          "comment" : "If there are no entries in the list, an emptyReason SHOULD be provided.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.entry",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "condition" : ["cmp-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity" : "cda",
            "map" : ".entry"
          }]
        },
        {
          "id" : "Composition.section.emptyReason",
          "path" : "Composition.section.emptyReason",
          "short" : "Why the section is empty",
          "definition" : "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
          "comment" : "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.",
          "requirements" : "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.emptyReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["cmp-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionEmptyReason"
            }],
            "strength" : "preferred",
            "description" : "If a section is empty, why it is empty.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-empty-reason"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.section",
          "path" : "Composition.section.section",
          "short" : "Nested Section",
          "definition" : "A nested sub-section within this section.",
          "comment" : "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.section",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Composition.section",
          "condition" : ["cmp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity" : "cda",
            "map" : ".component.section"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Composition",
          "path" : "Composition",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Composition.extension:versionNumber",
          "path" : "Composition.extension",
          "sliceName" : "versionNumber",
          "short" : "Version-specific identifier for composition",
          "definition" : "Version specific identifier for the composition, assigned when each version is created/updated.",
          "comment" : "While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example.",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber"]
          }]
        },
        {
          "id" : "Composition.subject",
          "path" : "Composition.subject",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/Group",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Location"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/catalog",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "catalog",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "sd"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/catalog",
      "version" : "4.0.1",
      "name" : "Profile for Catalog",
      "status" : "draft",
      "experimental" : false,
      "date" : "2014-01-31",
      "publisher" : "Health Level Seven, Inc. - Clinical Quality Information WG",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/cqi/index.cfm"
        }]
      }],
      "description" : "A set of resources composed into a single coherent clinical statement with clinical attestation",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "cda",
        "uri" : "http://hl7.org/v3/cda",
        "name" : "CDA (R2)"
      },
      {
        "identity" : "fhirdocumentreference",
        "uri" : "http://hl7.org/fhir/documentreference",
        "name" : "FHIR DocumentReference"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Composition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Composition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Composition",
          "path" : "Composition",
          "short" : "A set of resources composed into a single coherent clinical statement with clinical attestation",
          "definition" : "A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.",
          "comment" : "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "rim",
            "map" : "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]"
          },
          {
            "identity" : "cda",
            "map" : "ClinicalDocument"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "when described by DocumentReference"
          }]
        },
        {
          "id" : "Composition.id",
          "path" : "Composition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Composition.meta",
          "path" : "Composition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Composition.implicitRules",
          "path" : "Composition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Composition.language",
          "path" : "Composition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Composition.text",
          "path" : "Composition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Composition.contained",
          "path" : "Composition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.extension",
          "path" : "Composition.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "Composition.extension:ValidityPeriod",
          "path" : "Composition.extension",
          "sliceName" : "ValidityPeriod",
          "short" : "The validity of the catalog",
          "definition" : "The validity of the catalog.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqm-ValidityPeriod"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "Composition.modifierExtension",
          "path" : "Composition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.identifier",
          "path" : "Composition.identifier",
          "short" : "Version-independent identifier for the Composition",
          "definition" : "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.",
          "comment" : "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.identifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "rim",
            "map" : "Document.id / Document.setId"
          },
          {
            "identity" : "cda",
            "map" : ".setId"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.masterIdentifier"
          }]
        },
        {
          "id" : "Composition.status",
          "path" : "Composition.status",
          "short" : "preliminary | final | amended | entered-in-error",
          "definition" : "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.",
          "comment" : "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements.   \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.",
          "requirements" : "Need to be able to mark interim, amended, or withdrawn compositions or documents.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionStatus"
            }],
            "strength" : "required",
            "description" : "The workflow/clinical status of the composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.status"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          },
          {
            "identity" : "rim",
            "map" : "interim: .completionCode=\"IN\" & ./statusCode[isNormalDatatype()]=\"active\";  final: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and not(./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct()]);  amended: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct() and statusCode=\"completed\"];  withdrawn : .completionCode=NI &&  ./statusCode[isNormalDatatype()]=\"obsolete\""
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.status"
          }]
        },
        {
          "id" : "Composition.type",
          "path" : "Composition.type",
          "short" : "The type of document - a Catalog",
          "definition" : "The type of document - a Catalog.",
          "comment" : "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.",
          "requirements" : "Key metadata element describing the composition, used in searching/filtering.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "text" : "Catalog"
          },
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentType"
            }],
            "strength" : "preferred",
            "description" : "Type of a composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/doc-typecodes"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.type"
          }]
        },
        {
          "id" : "Composition.category",
          "path" : "Composition.category",
          "short" : "The Content of the section",
          "definition" : "The content (narrative and data) associated with the section.",
          "comment" : "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
          "requirements" : "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.category",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CatalogType"
            }],
            "strength" : "example",
            "description" : "The type of catalog.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/catalogType"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumenttReference.category"
          }]
        },
        {
          "id" : "Composition.subject",
          "path" : "Composition.subject",
          "short" : "Who and/or what the composition is about",
          "definition" : "Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).",
          "comment" : "For clinical documents, this is usually the patient.",
          "requirements" : "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Composition.subject",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.subject[x]"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
          },
          {
            "identity" : "cda",
            "map" : ".recordTarget"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.subject"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.subject"
          }]
        },
        {
          "id" : "Composition.encounter",
          "path" : "Composition.encounter",
          "short" : "Context of the Composition",
          "definition" : "Describes the clinical encounter or type of care this documentation is associated with.",
          "requirements" : "Provides context for the composition and supports searching.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.encounter",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.context"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
          },
          {
            "identity" : "cda",
            "map" : ".componentOf.encompassingEncounter"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.context.encounter"
          }]
        },
        {
          "id" : "Composition.date:IssueDate",
          "path" : "Composition.date",
          "sliceName" : "IssueDate",
          "short" : "When the Catalog was created",
          "definition" : "When the Catalog was created.",
          "comment" : "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
          "requirements" : "dateTime is used for tracking, organizing versions and searching. Note that this is the time of *authoring*. When packaged in a document, [Bundle.timestamp](http://hl7.org/fhir/bundle-definitions.html#Bundle.timestamp) is the date of packaging.",
          "alias" : ["IssueDate"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.date",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurrence[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime[type=\"TS\"]"
          },
          {
            "identity" : "cda",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.content.attachment.date, DocumentReference.created"
          }]
        },
        {
          "id" : "Composition.author",
          "path" : "Composition.author",
          "short" : "Who and/or what authored the composition",
          "definition" : "Identifies who is responsible for the information in the composition, not necessarily who typed it in.",
          "requirements" : "Identifies who is responsible for the content.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Composition.author",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.author"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".author.assignedAuthor"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.agent"
          }]
        },
        {
          "id" : "Composition.title",
          "path" : "Composition.title",
          "short" : "Human Readable name/title",
          "definition" : "Official human-readable label for the composition.",
          "comment" : "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.title",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./title"
          },
          {
            "identity" : "cda",
            "map" : ".title"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.description, DocumentReference.content.attachment.title"
          }]
        },
        {
          "id" : "Composition.confidentiality",
          "path" : "Composition.confidentiality",
          "short" : "As defined by affinity domain",
          "definition" : "The code specifying the level of confidentiality of the Composition.",
          "comment" : "The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.confidentiality",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentConfidentiality"
            }],
            "strength" : "required",
            "description" : "Codes specifying the level of confidentiality of the composition.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".confidentialityCode"
          },
          {
            "identity" : "cda",
            "map" : ".confidentialityCode"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.securityLabel"
          }]
        },
        {
          "id" : "Composition.attester",
          "path" : "Composition.attester",
          "short" : "Attests to accuracy of composition",
          "definition" : "A participant who has attested to the accuracy of the composition/document.",
          "comment" : "Only list each attester once.",
          "requirements" : "Identifies responsibility for the accuracy of the composition content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.attester",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator/.legalAuthenticator"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.authenticator"
          }]
        },
        {
          "id" : "Composition.attester.id",
          "path" : "Composition.attester.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.attester.extension",
          "path" : "Composition.attester.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.attester.modifierExtension",
          "path" : "Composition.attester.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.attester.mode",
          "path" : "Composition.attester.mode",
          "short" : "personal | professional | legal | official",
          "definition" : "The type of attestation the authenticator offers.",
          "requirements" : "Indicates the level of authority of the attestation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.mode",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionAttestationMode"
            }],
            "strength" : "required",
            "description" : "The way in which a person authenticated a composition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "unique(./modeCode)"
          },
          {
            "identity" : "cda",
            "map" : "implied by .authenticator/.legalAuthenticator"
          }]
        },
        {
          "id" : "Composition.attester.time",
          "path" : "Composition.attester.time",
          "short" : "When the composition was attested",
          "definition" : "When the composition was attested by the party.",
          "requirements" : "Identifies when the information in the composition was deemed accurate.  (Things may have changed since then.).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.time",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./time[type=\"TS\" and isNormalDatatype()]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator.time"
          }]
        },
        {
          "id" : "Composition.attester.party",
          "path" : "Composition.attester.party",
          "short" : "Who attested the composition",
          "definition" : "Who attested the composition in the specified way.",
          "requirements" : "Identifies who has taken on the responsibility for accuracy of the composition content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.attester.party",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : "./role[classCode=\"ASSIGNED\" and isNormalRole]/player[determinerCode=\"INST\" and classCode=(\"DEV\", \"PSN\") and isNormalEntity()] or ./role[classCode=\"ASSIGNED\" and isNormalRole and not(player)]/scoper[determinerCode=\"INST\" and classCode=\"ORG\" and isNormalEntity()]"
          },
          {
            "identity" : "cda",
            "map" : ".authenticator.assignedEnttty"
          }]
        },
        {
          "id" : "Composition.custodian",
          "path" : "Composition.custodian",
          "short" : "Organization which maintains the composition",
          "definition" : "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.",
          "comment" : "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.",
          "requirements" : "Identifies where to go to find the current version, where to report issues, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.custodian",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
          },
          {
            "identity" : "cda",
            "map" : ".custodian.assignedCustodian"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.custodian"
          }]
        },
        {
          "id" : "Composition.relatesTo",
          "path" : "Composition.relatesTo",
          "short" : "Relationships to other compositions/documents",
          "definition" : "Relationships that this composition has with other compositions or documents that already exist.",
          "comment" : "A document is a version specific composition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.relatesTo",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo"
          }]
        },
        {
          "id" : "Composition.relatesTo.id",
          "path" : "Composition.relatesTo.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.relatesTo.extension",
          "path" : "Composition.relatesTo.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.relatesTo.modifierExtension",
          "path" : "Composition.relatesTo.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.relatesTo.code",
          "path" : "Composition.relatesTo.code",
          "short" : "replaces | transforms | signs | appends",
          "definition" : "The type of relationship that this composition has with anther composition or document.",
          "comment" : "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.relatesTo.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentRelationshipType"
            }],
            "strength" : "required",
            "description" : "The type of relationship between documents.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship.typeCode"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument.typeCode"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo.code"
          }]
        },
        {
          "id" : "Composition.relatesTo.target[x]",
          "path" : "Composition.relatesTo.target[x]",
          "short" : "Target of the relationship",
          "definition" : "The target composition/document of this relationship.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Composition.relatesTo.target[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Identifier"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Composition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".target[classCode=\"DOC\", moodCode=\"EVN\"].id"
          },
          {
            "identity" : "cda",
            "map" : ".relatedDocument.id"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.relatesTo.target"
          }]
        },
        {
          "id" : "Composition.event",
          "path" : "Composition.event",
          "short" : "The clinical service(s) being documented",
          "definition" : "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
          "comment" : "The event needs to be consistent with the type element, though can provide further information if desired.",
          "requirements" : "Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
          },
          {
            "identity" : "cda",
            "map" : ".documentationOf.serviceEvent"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event"
          }]
        },
        {
          "id" : "Composition.event.id",
          "path" : "Composition.event.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.event.extension",
          "path" : "Composition.event.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.event.modifierExtension",
          "path" : "Composition.event.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.event.code",
          "path" : "Composition.event.code",
          "short" : "Code(s) that apply to the event being documented",
          "definition" : "This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act.",
          "comment" : "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DocumentEventType"
            }],
            "strength" : "example",
            "description" : "This list of codes represents the main clinical acts being documented.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActCode"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event.code"
          }]
        },
        {
          "id" : "Composition.event.period",
          "path" : "Composition.event.period",
          "short" : "The period covered by the documentation",
          "definition" : "The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.event.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "cda",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "fhirdocumentreference",
            "map" : "DocumentReference.event.period"
          }]
        },
        {
          "id" : "Composition.event.detail",
          "path" : "Composition.event.detail",
          "short" : "The event(s) being documented",
          "definition" : "The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.event.detail",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=\"SUBJ\"].target"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "Section"
          }],
          "path" : "Composition.section",
          "short" : "Composition is broken into sections",
          "definition" : "The root of the sections that make up the composition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "cmp-1",
            "severity" : "error",
            "human" : "A section must contain at least one of text, entries, or sub-sections",
            "expression" : "text.exists() or entry.exists() or section.exists()",
            "xpath" : "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source" : "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key" : "cmp-2",
            "severity" : "error",
            "human" : "A section can only have an emptyReason if it is empty",
            "expression" : "emptyReason.empty() or entry.empty()",
            "xpath" : "not(exists(f:emptyReason) and exists(f:entry))",
            "source" : "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity" : "cda",
            "map" : ".component.structuredBody.component.section"
          }]
        },
        {
          "id" : "Composition.section.id",
          "path" : "Composition.section.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.extension",
          "path" : "Composition.section.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.modifierExtension",
          "path" : "Composition.section.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Composition.section.title",
          "path" : "Composition.section.title",
          "short" : "Label for section (e.g. for ToC)",
          "definition" : "The label for this particular section.  This will be part of the rendered content for the document, and is often used to build a table of contents.",
          "comment" : "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title,  or documents that only have a single section. Most Implementation Guides will make section title to be a required element.",
          "requirements" : "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
          "alias" : ["header",
          "label",
          "caption"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./title"
          },
          {
            "identity" : "cda",
            "map" : ".title"
          }]
        },
        {
          "id" : "Composition.section.code",
          "path" : "Composition.section.code",
          "short" : "Classification of section (recommended)",
          "definition" : "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
          "comment" : "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document.   \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.",
          "requirements" : "Provides computable standardized labels to topics within the document.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.code",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CompositionSectionType"
            }],
            "strength" : "example",
            "description" : "Classification of a section of a composition/document.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/doc-section-codes"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./code"
          },
          {
            "identity" : "cda",
            "map" : ".code"
          }]
        },
        {
          "id" : "Composition.section.author",
          "path" : "Composition.section.author",
          "short" : "Who and/or what authored the section",
          "definition" : "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
          "requirements" : "Identifies who is responsible for the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.author"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity" : "cda",
            "map" : ".author.assignedAuthor"
          }]
        },
        {
          "id" : "Composition.section.focus",
          "path" : "Composition.section.focus",
          "short" : "Who/what the section is about, when it is not about the subject of composition",
          "definition" : "The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources).",
          "comment" : "Typically, sections in a doument are about the subject of the document, whether that is a  patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are  a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.focus",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "cda",
            "map" : ".subject? (CDA did not differentiate between subject and focus)"
          }]
        },
        {
          "id" : "Composition.section.text",
          "path" : "Composition.section.text",
          "short" : "Text summary of the section, for human interpretation",
          "definition" : "A human-readable narrative that contains the attested content of the section, 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.",
          "comment" : "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "condition" : ["cmp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".text"
          },
          {
            "identity" : "cda",
            "map" : ".text"
          }]
        },
        {
          "id" : "Composition.section.mode",
          "path" : "Composition.section.mode",
          "short" : "working | snapshot | changes",
          "definition" : "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
          "comment" : "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
          "requirements" : "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.mode",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionMode"
            }],
            "strength" : "required",
            "description" : "The processing mode that applies to this section.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.class"
          },
          {
            "identity" : "rim",
            "map" : ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.orderedBy",
          "path" : "Composition.section.orderedBy",
          "short" : "Order of section entries",
          "definition" : "Specifies the order applied to the items in the section entries.",
          "comment" : "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
          "requirements" : "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.orderedBy",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionEntryOrder"
            }],
            "strength" : "preferred",
            "description" : "What order applies to the items in the entry.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-order"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.entry",
          "path" : "Composition.section.entry",
          "short" : "The Content of the section",
          "definition" : "The content (narrative and data) associated with the section.",
          "comment" : "If there are no entries in the list, an emptyReason SHOULD be provided.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.entry",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CatalogEntry"]
          }],
          "condition" : ["cmp-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity" : "cda",
            "map" : ".entry"
          }]
        },
        {
          "id" : "Composition.section.emptyReason",
          "path" : "Composition.section.emptyReason",
          "short" : "Why the section is empty",
          "definition" : "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
          "comment" : "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.",
          "requirements" : "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Composition.section.emptyReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "condition" : ["cmp-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SectionEmptyReason"
            }],
            "strength" : "preferred",
            "description" : "If a section is empty, why it is empty.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/list-empty-reason"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity" : "cda",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Composition.section.section",
          "path" : "Composition.section.section",
          "short" : "Nested Section",
          "definition" : "A nested sub-section within this section.",
          "comment" : "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Composition.section.section",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Composition.section",
          "condition" : ["cmp-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity" : "cda",
            "map" : ".component.section"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Composition",
          "path" : "Composition",
          "short" : "A set of resources composed into a single coherent clinical statement with clinical attestation",
          "definition" : "A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Composition.extension:ValidityPeriod",
          "path" : "Composition.extension",
          "sliceName" : "ValidityPeriod",
          "short" : "The validity of the catalog",
          "definition" : "The validity of the catalog.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqm-ValidityPeriod"]
          }]
        },
        {
          "id" : "Composition.type",
          "path" : "Composition.type",
          "short" : "The type of document - a Catalog",
          "definition" : "The type of document - a Catalog.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "fixedCodeableConcept" : {
            "text" : "Catalog"
          }
        },
        {
          "id" : "Composition.category",
          "path" : "Composition.category",
          "short" : "The Content of the section",
          "definition" : "The content (narrative and data) associated with the section.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "CatalogType"
            }],
            "strength" : "example",
            "description" : "The type of catalog.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/catalogType"
          }
        },
        {
          "id" : "Composition.subject",
          "path" : "Composition.subject",
          "short" : "Who and/or what the composition is about",
          "definition" : "Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).",
          "min" : 0,
          "max" : "0",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }]
        },
        {
          "id" : "Composition.date:IssueDate",
          "path" : "Composition.date",
          "sliceName" : "IssueDate",
          "short" : "When the Catalog was created",
          "definition" : "When the Catalog was created.",
          "alias" : ["IssueDate"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "dateTime"
          }]
        },
        {
          "id" : "Composition.section",
          "path" : "Composition.section",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Composition.section.entry",
          "path" : "Composition.section.entry",
          "short" : "The Content of the section",
          "definition" : "The content (narrative and data) associated with the section.",
          "min" : 1,
          "max" : "*",
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/CatalogEntry"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/shareableplandefinition",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "shareableplandefinition",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/shareableplandefinition",
      "version" : "4.0.1",
      "name" : "Shareable PlanDefinition",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Enforces the minimum information set for the plan definition metadata required by HL7 and other organizations that share and publish plan definitions",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "PlanDefinition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "short" : "The definition of a plan for a series of actions, independent of any specific patient or context",
          "definition" : "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "pdf-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "PlanDefinition.id",
          "path" : "PlanDefinition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.meta",
          "path" : "PlanDefinition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.implicitRules",
          "path" : "PlanDefinition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.language",
          "path" : "PlanDefinition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "PlanDefinition.text",
          "path" : "PlanDefinition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "PlanDefinition.contained",
          "path" : "PlanDefinition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.extension",
          "path" : "PlanDefinition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.modifierExtension",
          "path" : "PlanDefinition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.url",
          "path" : "PlanDefinition.url",
          "short" : "Canonical identifier for this plan definition, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this plan definition 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 at which an authoritative instance of this plan definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the plan definition is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the plan definition to be referenced by a single globally unique identifier.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "PlanDefinition.identifier",
          "path" : "PlanDefinition.identifier",
          "short" : "Additional identifier for the plan definition",
          "definition" : "A formal identifier that is used to identify this plan definition when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this plan definition outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.version",
          "path" : "PlanDefinition.version",
          "short" : "Business version of the plan definition",
          "definition" : "The identifier that is used to identify this version of the plan definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the plan definition 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different plan definition 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 plan definition with the format [url]|[version].",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "PlanDefinition.name",
          "path" : "PlanDefinition.name",
          "short" : "Name for this plan definition (computer friendly)",
          "definition" : "A natural language name identifying the plan definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.title",
          "path" : "PlanDefinition.title",
          "short" : "Name for this plan definition (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the plan definition.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.subtitle",
          "path" : "PlanDefinition.subtitle",
          "short" : "Subordinate title of the plan definition",
          "definition" : "An explanatory or alternate title for the plan definition giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.type",
          "path" : "PlanDefinition.type",
          "short" : "order-set | clinical-protocol | eca-rule | workflow-definition",
          "definition" : "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PlanDefinitionType"
            }],
            "strength" : "extensible",
            "description" : "The type of PlanDefinition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/plan-definition-type"
          }
        },
        {
          "id" : "PlanDefinition.status",
          "path" : "PlanDefinition.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this plan definition. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status {different ValueSet}"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "PlanDefinition.experimental",
          "path" : "PlanDefinition.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level plan definition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "PlanDefinition.subject[x]",
          "path" : "PlanDefinition.subject[x]",
          "short" : "Type of individual the plan definition is focused on",
          "definition" : "A code or group definition that describes the intended subject of the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.date",
          "path" : "PlanDefinition.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the plan definition was published. 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 plan definition changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "PlanDefinition.publisher",
          "path" : "PlanDefinition.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the plan definition.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan definition. 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 plan definition. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the plan definition.  May also allow for contact.",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "PlanDefinition.contact",
          "path" : "PlanDefinition.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "PlanDefinition.description",
          "path" : "PlanDefinition.description",
          "short" : "Natural language description of the plan definition",
          "definition" : "A free text natural language description of the plan definition from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the plan definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the plan definition 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 plan definition is presumed to be the predominant language in the place the plan definition was created).",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.useContext",
          "path" : "PlanDefinition.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 plan definition instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "PlanDefinition.jurisdiction",
          "path" : "PlanDefinition.jurisdiction",
          "short" : "Intended jurisdiction for plan definition (if applicable)",
          "definition" : "A legal or geographic region in which the plan definition is intended to be used.",
          "comment" : "It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "PlanDefinition.purpose",
          "path" : "PlanDefinition.purpose",
          "short" : "Why this plan definition is defined",
          "definition" : "Explanation of why this plan definition is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the plan definition. 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 plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.usage",
          "path" : "PlanDefinition.usage",
          "short" : "Describes the clinical usage of the plan",
          "definition" : "A detailed description of how the plan definition is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.copyright",
          "path" : "PlanDefinition.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the plan definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the plan definition.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the plan definition and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.approvalDate",
          "path" : "PlanDefinition.approvalDate",
          "short" : "When the plan definition was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.lastReviewDate",
          "path" : "PlanDefinition.lastReviewDate",
          "short" : "When the plan definition was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.effectivePeriod",
          "path" : "PlanDefinition.effectivePeriod",
          "short" : "When the plan definition is expected to be used",
          "definition" : "The period during which the plan definition content was or is planned to be in active use.",
          "comment" : "The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the plan definition are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.topic",
          "path" : "PlanDefinition.topic",
          "short" : "E.g. Education, Treatment, Assessment",
          "definition" : "Descriptive topics related to the content of the plan definition. Topics provide a high-level categorization of the definition that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the plan definition so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject[x]"
          }]
        },
        {
          "id" : "PlanDefinition.author",
          "path" : "PlanDefinition.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "PlanDefinition.editor",
          "path" : "PlanDefinition.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.reviewer",
          "path" : "PlanDefinition.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.endorser",
          "path" : "PlanDefinition.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.relatedArtifact",
          "path" : "PlanDefinition.relatedArtifact",
          "short" : "Additional documentation, citations",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Plan definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.library",
          "path" : "PlanDefinition.library",
          "short" : "Logic used by the plan definition",
          "definition" : "A reference to a Library resource containing any formal logic used by the plan definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.library",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal",
          "path" : "PlanDefinition.goal",
          "short" : "What the plan is trying to accomplish",
          "definition" : "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
          "requirements" : "Goal information needs to be captured for order sets, protocols, and care plan definitions to better describe the objectives of the protocol activities and to guide the creation of specific goals within the derived care plans and orders.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.id",
          "path" : "PlanDefinition.goal.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.extension",
          "path" : "PlanDefinition.goal.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.modifierExtension",
          "path" : "PlanDefinition.goal.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.category",
          "path" : "PlanDefinition.goal.category",
          "short" : "E.g. Treatment, dietary, behavioral",
          "definition" : "Indicates a category the goal falls within.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.category",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalCategory"
            }],
            "strength" : "example",
            "description" : "Example codes for grouping goals for filtering or presentation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-category"
          }
        },
        {
          "id" : "PlanDefinition.goal.description",
          "path" : "PlanDefinition.goal.description",
          "short" : "Code or text describing the goal",
          "definition" : "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".",
          "comment" : "If no code is available, use CodeableConcept.text.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.description",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalDescription"
            }],
            "strength" : "example",
            "description" : "Describes goals that can be achieved.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          }
        },
        {
          "id" : "PlanDefinition.goal.priority",
          "path" : "PlanDefinition.goal.priority",
          "short" : "high-priority | medium-priority | low-priority",
          "definition" : "Identifies the expected level of importance associated with reaching/sustaining the defined goal.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalPriority"
            }],
            "strength" : "preferred",
            "description" : "Indicates the level of importance associated with reaching or sustaining a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-priority"
          }
        },
        {
          "id" : "PlanDefinition.goal.start",
          "path" : "PlanDefinition.goal.start",
          "short" : "When goal pursuit begins",
          "definition" : "The event after which the goal should begin being pursued.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.start",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalStartEvent"
            }],
            "strength" : "example",
            "description" : "Identifies the types of events that might trigger the start of a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-start-event"
          }
        },
        {
          "id" : "PlanDefinition.goal.addresses",
          "path" : "PlanDefinition.goal.addresses",
          "short" : "What does the goal address",
          "definition" : "Identifies problems, conditions, issues, or concerns the goal is intended to address.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.addresses",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalAddresses"
            }],
            "strength" : "example",
            "description" : "Identifies problems, conditions, issues, or concerns that goals may address.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
          }
        },
        {
          "id" : "PlanDefinition.goal.documentation",
          "path" : "PlanDefinition.goal.documentation",
          "short" : "Supporting documentation for the goal",
          "definition" : "Didactic or other informational resources associated with the goal that provide further supporting information about the goal. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target",
          "path" : "PlanDefinition.goal.target",
          "short" : "Target outcome for the goal",
          "definition" : "Indicates what should be done and within what timeframe.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.target",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.id",
          "path" : "PlanDefinition.goal.target.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.extension",
          "path" : "PlanDefinition.goal.target.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.modifierExtension",
          "path" : "PlanDefinition.goal.target.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.measure",
          "path" : "PlanDefinition.goal.target.measure",
          "short" : "The parameter whose value is to be tracked",
          "definition" : "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.measure",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalTargetMeasure"
            }],
            "strength" : "example",
            "description" : "Identifies types of parameters that can be tracked to determine goal achievement.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          }
        },
        {
          "id" : "PlanDefinition.goal.target.detail[x]",
          "path" : "PlanDefinition.goal.target.detail[x]",
          "short" : "The target value to be achieved",
          "definition" : "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.detail[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.due",
          "path" : "PlanDefinition.goal.target.due",
          "short" : "Reach goal within",
          "definition" : "Indicates the timeframe after the start of the goal in which the goal should be met.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.due",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action",
          "path" : "PlanDefinition.action",
          "short" : "Action defined by the plan",
          "definition" : "An action or group of actions to be taken as part of the plan.",
          "comment" : "Note that there is overlap between many of the elements defined here and the ActivityDefinition resource. When an ActivityDefinition is referenced (using the definition element), the overlapping elements in the plan override the content of the referenced ActivityDefinition unless otherwise documented in the specific elements. See the PlanDefinition resource for more detailed information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{Is a contained Definition}"
          }]
        },
        {
          "id" : "PlanDefinition.action.id",
          "path" : "PlanDefinition.action.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.extension",
          "path" : "PlanDefinition.action.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.modifierExtension",
          "path" : "PlanDefinition.action.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.prefix",
          "path" : "PlanDefinition.action.prefix",
          "short" : "User-visible prefix for the action (e.g. 1. or A.)",
          "definition" : "A user-visible prefix for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.prefix",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.title",
          "path" : "PlanDefinition.action.title",
          "short" : "User-visible title",
          "definition" : "The title of the action displayed to a user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.action.description",
          "path" : "PlanDefinition.action.description",
          "short" : "Brief description of the action",
          "definition" : "A brief description of the action used to provide a summary to display to the user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.textEquivalent",
          "path" : "PlanDefinition.action.textEquivalent",
          "short" : "Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system",
          "definition" : "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.textEquivalent",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.priority",
          "path" : "PlanDefinition.action.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the action should be addressed with respect to other actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.code",
          "path" : "PlanDefinition.action.code",
          "short" : "Code representing the meaning of the action or sub-actions",
          "definition" : "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.reason",
          "path" : "PlanDefinition.action.reason",
          "short" : "Why the action should be performed",
          "definition" : "A description of why this action is necessary or appropriate.",
          "comment" : "This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.reason",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.documentation",
          "path" : "PlanDefinition.action.documentation",
          "short" : "Supporting documentation for the intended performer of the action",
          "definition" : "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.goalId",
          "path" : "PlanDefinition.action.goalId",
          "short" : "What goals this action supports",
          "definition" : "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.goalId",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.subject[x]",
          "path" : "PlanDefinition.action.subject[x]",
          "short" : "Type of individual the action is focused on",
          "definition" : "A code or group definition that describes the intended subject of the action and its children, if any.",
          "comment" : "The subject of an action overrides the subject at a parent action or on the root of the PlanDefinition if specified.\n\nIn addition, because the subject needs to be resolved during realization, use of subjects in actions (or in the ActivityDefinition referenced by the action) resolves based on the set of subjects supplied in context and by type (i.e. the patient subject would resolve to a resource of type Patient).",
          "requirements" : "Multiple steps in a protocol often have different groups of steps that are focused on testing different things. The subject of an action specifies the focus of the action and any child actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.action.trigger",
          "path" : "PlanDefinition.action.trigger",
          "short" : "When the action should be triggered",
          "definition" : "A description of when the action should be triggered.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.trigger",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "TriggerDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition",
          "path" : "PlanDefinition.action.condition",
          "short" : "Whether or not the action is applicable",
          "definition" : "An expression that describes applicability criteria or start/stop conditions for the action.",
          "comment" : "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all the conditions are true.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition.id",
          "path" : "PlanDefinition.action.condition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.extension",
          "path" : "PlanDefinition.action.condition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.modifierExtension",
          "path" : "PlanDefinition.action.condition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.kind",
          "path" : "PlanDefinition.action.condition.kind",
          "short" : "applicability | start | stop",
          "definition" : "The kind of condition.",
          "comment" : "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.kind",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionConditionKind"
            }],
            "strength" : "required",
            "description" : "Defines the kinds of conditions that can appear on actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.condition.expression",
          "path" : "PlanDefinition.action.condition.expression",
          "short" : "Boolean-valued expression",
          "definition" : "An expression that returns true or false, indicating whether the condition is satisfied.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.input",
          "path" : "PlanDefinition.action.input",
          "short" : "Input data requirements",
          "definition" : "Defines input data requirements for the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.input",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.output",
          "path" : "PlanDefinition.action.output",
          "short" : "Output data definition",
          "definition" : "Defines the outputs of the action, if any.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.output",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction",
          "path" : "PlanDefinition.action.relatedAction",
          "short" : "Relationship to another action",
          "definition" : "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".",
          "comment" : "When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.id",
          "path" : "PlanDefinition.action.relatedAction.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.extension",
          "path" : "PlanDefinition.action.relatedAction.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.modifierExtension",
          "path" : "PlanDefinition.action.relatedAction.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.actionId",
          "path" : "PlanDefinition.action.relatedAction.actionId",
          "short" : "What action is this related to",
          "definition" : "The element id of the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.actionId",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.relationship",
          "path" : "PlanDefinition.action.relatedAction.relationship",
          "short" : "before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end",
          "definition" : "The relationship of this action to the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.relationship",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRelationshipType"
            }],
            "strength" : "required",
            "description" : "Defines the types of relationships between actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.relatedAction.offset[x]",
          "path" : "PlanDefinition.action.relatedAction.offset[x]",
          "short" : "Time offset for the relationship",
          "definition" : "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.offset[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          },
          {
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.timing[x]",
          "path" : "PlanDefinition.action.timing[x]",
          "short" : "When the action should take place",
          "definition" : "An optional value describing when the action should be performed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.timing[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant",
          "path" : "PlanDefinition.action.participant",
          "short" : "Who should participate in the action",
          "definition" : "Indicates who should participate in performing the action described.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.participant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant.id",
          "path" : "PlanDefinition.action.participant.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.extension",
          "path" : "PlanDefinition.action.participant.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.modifierExtension",
          "path" : "PlanDefinition.action.participant.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.type",
          "path" : "PlanDefinition.action.participant.type",
          "short" : "patient | practitioner | related-person | device",
          "definition" : "The type of participant in the action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantType"
            }],
            "strength" : "required",
            "description" : "The type of participant for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.participant.role",
          "path" : "PlanDefinition.action.participant.role",
          "short" : "E.g. Nurse, Surgeon, Parent",
          "definition" : "The role the participant should play in performing the described action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.role",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantRole"
            }],
            "strength" : "example",
            "description" : "Defines roles played by participants for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-role"
          }
        },
        {
          "id" : "PlanDefinition.action.type",
          "path" : "PlanDefinition.action.type",
          "short" : "create | update | remove | fire-event",
          "definition" : "The type of action to perform (create, update, remove).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionType"
            }],
            "strength" : "extensible",
            "description" : "The type of action to be performed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-type"
          }
        },
        {
          "id" : "PlanDefinition.action.groupingBehavior",
          "path" : "PlanDefinition.action.groupingBehavior",
          "short" : "visual-group | logical-group | sentence-group",
          "definition" : "Defines the grouping behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.groupingBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionGroupingBehavior"
            }],
            "strength" : "required",
            "description" : "Defines organization behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.selectionBehavior",
          "path" : "PlanDefinition.action.selectionBehavior",
          "short" : "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
          "definition" : "Defines the selection behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.selectionBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionSelectionBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.requiredBehavior",
          "path" : "PlanDefinition.action.requiredBehavior",
          "short" : "must | could | must-unless-documented",
          "definition" : "Defines the required behavior for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.requiredBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRequiredBehavior"
            }],
            "strength" : "required",
            "description" : "Defines expectations around whether an action or action group is required.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.precheckBehavior",
          "path" : "PlanDefinition.action.precheckBehavior",
          "short" : "yes | no",
          "definition" : "Defines whether the action should usually be preselected.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.precheckBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionPrecheckBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection frequency behavior for an action or group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.cardinalityBehavior",
          "path" : "PlanDefinition.action.cardinalityBehavior",
          "short" : "single | multiple",
          "definition" : "Defines whether the action can be selected multiple times.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.cardinalityBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionCardinalityBehavior"
            }],
            "strength" : "required",
            "description" : "Defines behavior for an action or a group for how many times that item may be repeated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.definition[x]",
          "path" : "PlanDefinition.action.definition[x]",
          "short" : "Description of the activity to be performed",
          "definition" : "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.",
          "comment" : "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.definition[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
            "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
            "http://hl7.org/fhir/StructureDefinition/Questionnaire"]
          },
          {
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.derivedFrom"
          }]
        },
        {
          "id" : "PlanDefinition.action.transform",
          "path" : "PlanDefinition.action.transform",
          "short" : "Transform to apply the template",
          "definition" : "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.",
          "comment" : "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.transform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue",
          "path" : "PlanDefinition.action.dynamicValue",
          "short" : "Dynamic aspects of the definition",
          "definition" : "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.",
          "comment" : "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.id",
          "path" : "PlanDefinition.action.dynamicValue.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.extension",
          "path" : "PlanDefinition.action.dynamicValue.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "path" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.path",
          "path" : "PlanDefinition.action.dynamicValue.path",
          "short" : "The path to the element to be set dynamically",
          "definition" : "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/fhirpath.html#simple) for full details).",
          "comment" : "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.path",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.expression",
          "path" : "PlanDefinition.action.dynamicValue.expression",
          "short" : "An expression that provides the dynamic value for the customization",
          "definition" : "An expression specifying the value of the customized element.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.action",
          "path" : "PlanDefinition.action.action",
          "short" : "A sub-action",
          "definition" : "Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.action",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#PlanDefinition.action",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{InverseRelationship of Definition.partOf}"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "PlanDefinition.url",
          "path" : "PlanDefinition.url",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "uri"
          }]
        },
        {
          "id" : "PlanDefinition.identifier",
          "path" : "PlanDefinition.identifier",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.version",
          "path" : "PlanDefinition.version",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "PlanDefinition.name",
          "path" : "PlanDefinition.name",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "PlanDefinition.title",
          "path" : "PlanDefinition.title",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.experimental",
          "path" : "PlanDefinition.experimental",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "boolean"
          }]
        },
        {
          "id" : "PlanDefinition.date",
          "path" : "PlanDefinition.date",
          "min" : 0,
          "max" : "1",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.publisher",
          "path" : "PlanDefinition.publisher",
          "alias" : ["steward"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "string"
          }]
        },
        {
          "id" : "PlanDefinition.contact",
          "path" : "PlanDefinition.contact",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.description",
          "path" : "PlanDefinition.description",
          "alias" : ["scope"],
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "markdown"
          }],
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.useContext",
          "path" : "PlanDefinition.useContext",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.jurisdiction",
          "path" : "PlanDefinition.jurisdiction",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/computableplandefinition",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "computableplandefinition",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/computableplandefinition",
      "version" : "4.0.1",
      "name" : "Computable PlanDefinition",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Defines a computable PlanDefinition that specifies a single library and requires all expressions referenced from the PlanDefinition to be definitions in that single library",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "PlanDefinition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "short" : "The definition of a plan for a series of actions, independent of any specific patient or context",
          "definition" : "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "pdf-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "PlanDefinition.id",
          "path" : "PlanDefinition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.meta",
          "path" : "PlanDefinition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.implicitRules",
          "path" : "PlanDefinition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.language",
          "path" : "PlanDefinition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "PlanDefinition.text",
          "path" : "PlanDefinition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "PlanDefinition.contained",
          "path" : "PlanDefinition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.extension",
          "path" : "PlanDefinition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.modifierExtension",
          "path" : "PlanDefinition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.url",
          "path" : "PlanDefinition.url",
          "short" : "Canonical identifier for this plan definition, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this plan definition 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 at which an authoritative instance of this plan definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the plan definition is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the plan definition to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "PlanDefinition.identifier",
          "path" : "PlanDefinition.identifier",
          "short" : "Additional identifier for the plan definition",
          "definition" : "A formal identifier that is used to identify this plan definition when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this plan definition outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.version",
          "path" : "PlanDefinition.version",
          "short" : "Business version of the plan definition",
          "definition" : "The identifier that is used to identify this version of the plan definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the plan definition 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different plan definition 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 plan definition with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "PlanDefinition.name",
          "path" : "PlanDefinition.name",
          "short" : "Name for this plan definition (computer friendly)",
          "definition" : "A natural language name identifying the plan definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.title",
          "path" : "PlanDefinition.title",
          "short" : "Name for this plan definition (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the plan definition.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.subtitle",
          "path" : "PlanDefinition.subtitle",
          "short" : "Subordinate title of the plan definition",
          "definition" : "An explanatory or alternate title for the plan definition giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.type",
          "path" : "PlanDefinition.type",
          "short" : "order-set | clinical-protocol | eca-rule | workflow-definition",
          "definition" : "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PlanDefinitionType"
            }],
            "strength" : "extensible",
            "description" : "The type of PlanDefinition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/plan-definition-type"
          }
        },
        {
          "id" : "PlanDefinition.status",
          "path" : "PlanDefinition.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this plan definition. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status {different ValueSet}"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "PlanDefinition.experimental",
          "path" : "PlanDefinition.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "PlanDefinition.subject[x]",
          "path" : "PlanDefinition.subject[x]",
          "short" : "Type of individual the plan definition is focused on",
          "definition" : "A code or group definition that describes the intended subject of the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.date",
          "path" : "PlanDefinition.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the plan definition was published. 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 plan definition changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "PlanDefinition.publisher",
          "path" : "PlanDefinition.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the plan definition.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan definition. 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 plan definition. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the plan definition.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "PlanDefinition.contact",
          "path" : "PlanDefinition.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "PlanDefinition.description",
          "path" : "PlanDefinition.description",
          "short" : "Natural language description of the plan definition",
          "definition" : "A free text natural language description of the plan definition from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the plan definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the plan definition 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 plan definition is presumed to be the predominant language in the place the plan definition was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.useContext",
          "path" : "PlanDefinition.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 plan definition instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "PlanDefinition.jurisdiction",
          "path" : "PlanDefinition.jurisdiction",
          "short" : "Intended jurisdiction for plan definition (if applicable)",
          "definition" : "A legal or geographic region in which the plan definition is intended to be used.",
          "comment" : "It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "PlanDefinition.purpose",
          "path" : "PlanDefinition.purpose",
          "short" : "Why this plan definition is defined",
          "definition" : "Explanation of why this plan definition is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the plan definition. 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 plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.usage",
          "path" : "PlanDefinition.usage",
          "short" : "Describes the clinical usage of the plan",
          "definition" : "A detailed description of how the plan definition is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.copyright",
          "path" : "PlanDefinition.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the plan definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the plan definition.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the plan definition and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.approvalDate",
          "path" : "PlanDefinition.approvalDate",
          "short" : "When the plan definition was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.lastReviewDate",
          "path" : "PlanDefinition.lastReviewDate",
          "short" : "When the plan definition was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.effectivePeriod",
          "path" : "PlanDefinition.effectivePeriod",
          "short" : "When the plan definition is expected to be used",
          "definition" : "The period during which the plan definition content was or is planned to be in active use.",
          "comment" : "The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the plan definition are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.topic",
          "path" : "PlanDefinition.topic",
          "short" : "E.g. Education, Treatment, Assessment",
          "definition" : "Descriptive topics related to the content of the plan definition. Topics provide a high-level categorization of the definition that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the plan definition so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject[x]"
          }]
        },
        {
          "id" : "PlanDefinition.author",
          "path" : "PlanDefinition.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "PlanDefinition.editor",
          "path" : "PlanDefinition.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.reviewer",
          "path" : "PlanDefinition.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.endorser",
          "path" : "PlanDefinition.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.relatedArtifact",
          "path" : "PlanDefinition.relatedArtifact",
          "short" : "Additional documentation, citations",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Plan definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.library",
          "path" : "PlanDefinition.library",
          "short" : "Logic used by the plan definition",
          "definition" : "A reference to a Library resource containing any formal logic used by the plan definition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.library",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal",
          "path" : "PlanDefinition.goal",
          "short" : "What the plan is trying to accomplish",
          "definition" : "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
          "requirements" : "Goal information needs to be captured for order sets, protocols, and care plan definitions to better describe the objectives of the protocol activities and to guide the creation of specific goals within the derived care plans and orders.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.id",
          "path" : "PlanDefinition.goal.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.extension",
          "path" : "PlanDefinition.goal.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.modifierExtension",
          "path" : "PlanDefinition.goal.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.category",
          "path" : "PlanDefinition.goal.category",
          "short" : "E.g. Treatment, dietary, behavioral",
          "definition" : "Indicates a category the goal falls within.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.category",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalCategory"
            }],
            "strength" : "example",
            "description" : "Example codes for grouping goals for filtering or presentation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-category"
          }
        },
        {
          "id" : "PlanDefinition.goal.description",
          "path" : "PlanDefinition.goal.description",
          "short" : "Code or text describing the goal",
          "definition" : "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".",
          "comment" : "If no code is available, use CodeableConcept.text.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.description",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalDescription"
            }],
            "strength" : "example",
            "description" : "Describes goals that can be achieved.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          }
        },
        {
          "id" : "PlanDefinition.goal.priority",
          "path" : "PlanDefinition.goal.priority",
          "short" : "high-priority | medium-priority | low-priority",
          "definition" : "Identifies the expected level of importance associated with reaching/sustaining the defined goal.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalPriority"
            }],
            "strength" : "preferred",
            "description" : "Indicates the level of importance associated with reaching or sustaining a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-priority"
          }
        },
        {
          "id" : "PlanDefinition.goal.start",
          "path" : "PlanDefinition.goal.start",
          "short" : "When goal pursuit begins",
          "definition" : "The event after which the goal should begin being pursued.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.start",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalStartEvent"
            }],
            "strength" : "example",
            "description" : "Identifies the types of events that might trigger the start of a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-start-event"
          }
        },
        {
          "id" : "PlanDefinition.goal.addresses",
          "path" : "PlanDefinition.goal.addresses",
          "short" : "What does the goal address",
          "definition" : "Identifies problems, conditions, issues, or concerns the goal is intended to address.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.addresses",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalAddresses"
            }],
            "strength" : "example",
            "description" : "Identifies problems, conditions, issues, or concerns that goals may address.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
          }
        },
        {
          "id" : "PlanDefinition.goal.documentation",
          "path" : "PlanDefinition.goal.documentation",
          "short" : "Supporting documentation for the goal",
          "definition" : "Didactic or other informational resources associated with the goal that provide further supporting information about the goal. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target",
          "path" : "PlanDefinition.goal.target",
          "short" : "Target outcome for the goal",
          "definition" : "Indicates what should be done and within what timeframe.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.target",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.id",
          "path" : "PlanDefinition.goal.target.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.extension",
          "path" : "PlanDefinition.goal.target.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.modifierExtension",
          "path" : "PlanDefinition.goal.target.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.measure",
          "path" : "PlanDefinition.goal.target.measure",
          "short" : "The parameter whose value is to be tracked",
          "definition" : "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.measure",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalTargetMeasure"
            }],
            "strength" : "example",
            "description" : "Identifies types of parameters that can be tracked to determine goal achievement.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          }
        },
        {
          "id" : "PlanDefinition.goal.target.detail[x]",
          "path" : "PlanDefinition.goal.target.detail[x]",
          "short" : "The target value to be achieved",
          "definition" : "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.detail[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.due",
          "path" : "PlanDefinition.goal.target.due",
          "short" : "Reach goal within",
          "definition" : "Indicates the timeframe after the start of the goal in which the goal should be met.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.due",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action",
          "path" : "PlanDefinition.action",
          "short" : "Action defined by the plan",
          "definition" : "An action or group of actions to be taken as part of the plan.",
          "comment" : "Note that there is overlap between many of the elements defined here and the ActivityDefinition resource. When an ActivityDefinition is referenced (using the definition element), the overlapping elements in the plan override the content of the referenced ActivityDefinition unless otherwise documented in the specific elements. See the PlanDefinition resource for more detailed information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{Is a contained Definition}"
          }]
        },
        {
          "id" : "PlanDefinition.action.id",
          "path" : "PlanDefinition.action.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.extension",
          "path" : "PlanDefinition.action.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.modifierExtension",
          "path" : "PlanDefinition.action.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.prefix",
          "path" : "PlanDefinition.action.prefix",
          "short" : "User-visible prefix for the action (e.g. 1. or A.)",
          "definition" : "A user-visible prefix for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.prefix",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.title",
          "path" : "PlanDefinition.action.title",
          "short" : "User-visible title",
          "definition" : "The title of the action displayed to a user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.action.description",
          "path" : "PlanDefinition.action.description",
          "short" : "Brief description of the action",
          "definition" : "A brief description of the action used to provide a summary to display to the user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.textEquivalent",
          "path" : "PlanDefinition.action.textEquivalent",
          "short" : "Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system",
          "definition" : "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.textEquivalent",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.priority",
          "path" : "PlanDefinition.action.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the action should be addressed with respect to other actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.code",
          "path" : "PlanDefinition.action.code",
          "short" : "Code representing the meaning of the action or sub-actions",
          "definition" : "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.reason",
          "path" : "PlanDefinition.action.reason",
          "short" : "Why the action should be performed",
          "definition" : "A description of why this action is necessary or appropriate.",
          "comment" : "This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.reason",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.documentation",
          "path" : "PlanDefinition.action.documentation",
          "short" : "Supporting documentation for the intended performer of the action",
          "definition" : "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.goalId",
          "path" : "PlanDefinition.action.goalId",
          "short" : "What goals this action supports",
          "definition" : "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.goalId",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.subject[x]",
          "path" : "PlanDefinition.action.subject[x]",
          "short" : "Type of individual the action is focused on",
          "definition" : "A code or group definition that describes the intended subject of the action and its children, if any.",
          "comment" : "The subject of an action overrides the subject at a parent action or on the root of the PlanDefinition if specified.\n\nIn addition, because the subject needs to be resolved during realization, use of subjects in actions (or in the ActivityDefinition referenced by the action) resolves based on the set of subjects supplied in context and by type (i.e. the patient subject would resolve to a resource of type Patient).",
          "requirements" : "Multiple steps in a protocol often have different groups of steps that are focused on testing different things. The subject of an action specifies the focus of the action and any child actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.action.trigger",
          "path" : "PlanDefinition.action.trigger",
          "short" : "When the action should be triggered",
          "definition" : "A description of when the action should be triggered.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.trigger",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "TriggerDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition",
          "path" : "PlanDefinition.action.condition",
          "short" : "Whether or not the action is applicable",
          "definition" : "An expression that describes applicability criteria or start/stop conditions for the action.",
          "comment" : "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all the conditions are true.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition.id",
          "path" : "PlanDefinition.action.condition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.extension",
          "path" : "PlanDefinition.action.condition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.modifierExtension",
          "path" : "PlanDefinition.action.condition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.kind",
          "path" : "PlanDefinition.action.condition.kind",
          "short" : "applicability | start | stop",
          "definition" : "The kind of condition.",
          "comment" : "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.kind",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionConditionKind"
            }],
            "strength" : "required",
            "description" : "Defines the kinds of conditions that can appear on actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.condition.expression",
          "path" : "PlanDefinition.action.condition.expression",
          "short" : "Boolean-valued expression",
          "definition" : "An expression that returns true or false, indicating whether the condition is satisfied.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.input",
          "path" : "PlanDefinition.action.input",
          "short" : "Input data requirements",
          "definition" : "Defines input data requirements for the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.input",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.output",
          "path" : "PlanDefinition.action.output",
          "short" : "Output data definition",
          "definition" : "Defines the outputs of the action, if any.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.output",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction",
          "path" : "PlanDefinition.action.relatedAction",
          "short" : "Relationship to another action",
          "definition" : "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".",
          "comment" : "When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.id",
          "path" : "PlanDefinition.action.relatedAction.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.extension",
          "path" : "PlanDefinition.action.relatedAction.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.modifierExtension",
          "path" : "PlanDefinition.action.relatedAction.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.actionId",
          "path" : "PlanDefinition.action.relatedAction.actionId",
          "short" : "What action is this related to",
          "definition" : "The element id of the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.actionId",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.relationship",
          "path" : "PlanDefinition.action.relatedAction.relationship",
          "short" : "before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end",
          "definition" : "The relationship of this action to the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.relationship",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRelationshipType"
            }],
            "strength" : "required",
            "description" : "Defines the types of relationships between actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.relatedAction.offset[x]",
          "path" : "PlanDefinition.action.relatedAction.offset[x]",
          "short" : "Time offset for the relationship",
          "definition" : "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.offset[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          },
          {
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.timing[x]",
          "path" : "PlanDefinition.action.timing[x]",
          "short" : "When the action should take place",
          "definition" : "An optional value describing when the action should be performed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.timing[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant",
          "path" : "PlanDefinition.action.participant",
          "short" : "Who should participate in the action",
          "definition" : "Indicates who should participate in performing the action described.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.participant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant.id",
          "path" : "PlanDefinition.action.participant.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.extension",
          "path" : "PlanDefinition.action.participant.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.modifierExtension",
          "path" : "PlanDefinition.action.participant.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.type",
          "path" : "PlanDefinition.action.participant.type",
          "short" : "patient | practitioner | related-person | device",
          "definition" : "The type of participant in the action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantType"
            }],
            "strength" : "required",
            "description" : "The type of participant for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.participant.role",
          "path" : "PlanDefinition.action.participant.role",
          "short" : "E.g. Nurse, Surgeon, Parent",
          "definition" : "The role the participant should play in performing the described action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.role",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantRole"
            }],
            "strength" : "example",
            "description" : "Defines roles played by participants for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-role"
          }
        },
        {
          "id" : "PlanDefinition.action.type",
          "path" : "PlanDefinition.action.type",
          "short" : "create | update | remove | fire-event",
          "definition" : "The type of action to perform (create, update, remove).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionType"
            }],
            "strength" : "extensible",
            "description" : "The type of action to be performed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-type"
          }
        },
        {
          "id" : "PlanDefinition.action.groupingBehavior",
          "path" : "PlanDefinition.action.groupingBehavior",
          "short" : "visual-group | logical-group | sentence-group",
          "definition" : "Defines the grouping behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.groupingBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionGroupingBehavior"
            }],
            "strength" : "required",
            "description" : "Defines organization behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.selectionBehavior",
          "path" : "PlanDefinition.action.selectionBehavior",
          "short" : "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
          "definition" : "Defines the selection behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.selectionBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionSelectionBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.requiredBehavior",
          "path" : "PlanDefinition.action.requiredBehavior",
          "short" : "must | could | must-unless-documented",
          "definition" : "Defines the required behavior for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.requiredBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRequiredBehavior"
            }],
            "strength" : "required",
            "description" : "Defines expectations around whether an action or action group is required.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.precheckBehavior",
          "path" : "PlanDefinition.action.precheckBehavior",
          "short" : "yes | no",
          "definition" : "Defines whether the action should usually be preselected.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.precheckBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionPrecheckBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection frequency behavior for an action or group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.cardinalityBehavior",
          "path" : "PlanDefinition.action.cardinalityBehavior",
          "short" : "single | multiple",
          "definition" : "Defines whether the action can be selected multiple times.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.cardinalityBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionCardinalityBehavior"
            }],
            "strength" : "required",
            "description" : "Defines behavior for an action or a group for how many times that item may be repeated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.definition[x]",
          "path" : "PlanDefinition.action.definition[x]",
          "short" : "Description of the activity to be performed",
          "definition" : "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.",
          "comment" : "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.definition[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
            "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
            "http://hl7.org/fhir/StructureDefinition/Questionnaire"]
          },
          {
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.derivedFrom"
          }]
        },
        {
          "id" : "PlanDefinition.action.transform",
          "path" : "PlanDefinition.action.transform",
          "short" : "Transform to apply the template",
          "definition" : "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.",
          "comment" : "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.transform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue",
          "path" : "PlanDefinition.action.dynamicValue",
          "short" : "Dynamic aspects of the definition",
          "definition" : "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.",
          "comment" : "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.id",
          "path" : "PlanDefinition.action.dynamicValue.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.extension",
          "path" : "PlanDefinition.action.dynamicValue.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "path" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.path",
          "path" : "PlanDefinition.action.dynamicValue.path",
          "short" : "The path to the element to be set dynamically",
          "definition" : "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/fhirpath.html#simple) for full details).",
          "comment" : "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.path",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.expression",
          "path" : "PlanDefinition.action.dynamicValue.expression",
          "short" : "An expression that provides the dynamic value for the customization",
          "definition" : "An expression specifying the value of the customized element.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.action",
          "path" : "PlanDefinition.action.action",
          "short" : "A sub-action",
          "definition" : "Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.action",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#PlanDefinition.action",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{InverseRelationship of Definition.partOf}"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "PlanDefinition.library",
          "path" : "PlanDefinition.library",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }]
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/cdshooksserviceplandefinition",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "cdshooksserviceplandefinition",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
        "valueInteger" : 2
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "cds"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/cdshooksserviceplandefinition",
      "version" : "4.0.1",
      "name" : "CDS Hooks Service PlanDefinition",
      "status" : "draft",
      "experimental" : false,
      "date" : "2019-11-01T09:29:23+11:00",
      "publisher" : "HL7",
      "description" : "Defines a PlanDefinition that implements the behavior for a CDS Hooks service",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "objimpl",
        "uri" : "http://hl7.org/fhir/object-implementation",
        "name" : "Object Implementation Information"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "PlanDefinition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "short" : "The definition of a plan for a series of actions, independent of any specific patient or context",
          "definition" : "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "pdf-0",
            "severity" : "warning",
            "human" : "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression" : "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath" : "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source" : "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Definition"
          }]
        },
        {
          "id" : "PlanDefinition.id",
          "path" : "PlanDefinition.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.meta",
          "path" : "PlanDefinition.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.implicitRules",
          "path" : "PlanDefinition.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.language",
          "path" : "PlanDefinition.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "PlanDefinition.text",
          "path" : "PlanDefinition.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "PlanDefinition.contained",
          "path" : "PlanDefinition.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.extension",
          "path" : "PlanDefinition.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "ordered" : false,
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.extension:cdsHooksEndpoint",
          "path" : "PlanDefinition.extension",
          "sliceName" : "cdsHooksEndpoint",
          "short" : "Service endpoint",
          "definition" : "Defines the service endpoint for the behavior implemented by the PlanDefinition.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint"]
          }],
          "condition" : ["ele-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false
        },
        {
          "id" : "PlanDefinition.modifierExtension",
          "path" : "PlanDefinition.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.url",
          "path" : "PlanDefinition.url",
          "short" : "Canonical identifier for this plan definition, represented as a URI (globally unique)",
          "definition" : "An absolute URI that is used to identify this plan definition 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 at which an authoritative instance of this plan definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the plan definition is stored on different servers.",
          "comment" : "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.\n\nThe 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://hl7.org/fhir/resource.html#versions). \n\nIn 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://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
          "requirements" : "Allows the plan definition to be referenced by a single globally unique identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.url",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.url"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          }]
        },
        {
          "id" : "PlanDefinition.identifier",
          "path" : "PlanDefinition.identifier",
          "short" : "Additional identifier for the plan definition",
          "definition" : "A formal identifier that is used to identify this plan definition when it is represented in other formats, or referenced in a specification, model, design or an instance.",
          "comment" : "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this plan definition outside of FHIR, where it is not possible to use the logical URI.",
          "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.identifier",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Identifier"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.identifier"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.identifier"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.version",
          "path" : "PlanDefinition.version",
          "short" : "Business version of the plan definition",
          "definition" : "The identifier that is used to identify this version of the plan definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the plan definition 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
          "comment" : "There may be different plan definition 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 plan definition with the format [url]|[version].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.version",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.version"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.version"
          }]
        },
        {
          "id" : "PlanDefinition.name",
          "path" : "PlanDefinition.name",
          "short" : "Name for this plan definition (computer friendly)",
          "definition" : "A natural language name identifying the plan definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
          "comment" : "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" : "Support human navigation and code generation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["inv-0"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "PlanDefinition.title",
          "path" : "PlanDefinition.title",
          "short" : "Name for this plan definition (human friendly)",
          "definition" : "A short, descriptive, user-friendly title for the plan definition.",
          "comment" : "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.subtitle",
          "path" : "PlanDefinition.subtitle",
          "short" : "Subordinate title of the plan definition",
          "definition" : "An explanatory or alternate title for the plan definition giving additional information about its content.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subtitle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.type",
          "path" : "PlanDefinition.type",
          "short" : "order-set | clinical-protocol | eca-rule | workflow-definition",
          "definition" : "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PlanDefinitionType"
            }],
            "strength" : "extensible",
            "description" : "The type of PlanDefinition.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/plan-definition-type"
          }
        },
        {
          "id" : "PlanDefinition.status",
          "path" : "PlanDefinition.status",
          "short" : "draft | active | retired | unknown",
          "definition" : "The status of this plan definition. Enables tracking the life-cycle of the content.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.status",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PublicationStatus"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The lifecycle status of an artifact.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.status {different ValueSet}"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.status"
          }]
        },
        {
          "id" : "PlanDefinition.experimental",
          "path" : "PlanDefinition.experimental",
          "short" : "For testing purposes, not real usage",
          "definition" : "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
          "comment" : "Allows filtering of plan definitions that are appropriate for use versus not.",
          "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.experimental",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.experimental"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.class"
          }]
        },
        {
          "id" : "PlanDefinition.subject[x]",
          "path" : "PlanDefinition.subject[x]",
          "short" : "Type of individual the plan definition is focused on",
          "definition" : "A code or group definition that describes the intended subject of the plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.date",
          "path" : "PlanDefinition.date",
          "short" : "Date last changed",
          "definition" : "The date  (and optionally time) when the plan definition was published. 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 plan definition changes.",
          "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
          "alias" : ["Revision Date"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.date",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.date"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          }]
        },
        {
          "id" : "PlanDefinition.publisher",
          "path" : "PlanDefinition.publisher",
          "short" : "Name of the publisher (organization or individual)",
          "definition" : "The name of the organization or individual that published the plan definition.",
          "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan definition. 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 plan definition. This item SHOULD be populated unless the information is available from context.",
          "requirements" : "Helps establish the \"authority/credibility\" of the plan definition.  May also allow for contact.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.publisher",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.publisher"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.witness"
          }]
        },
        {
          "id" : "PlanDefinition.contact",
          "path" : "PlanDefinition.contact",
          "short" : "Contact details for the publisher",
          "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
          "comment" : "May be a web site, an email address, a telephone number, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.contact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.contact"
          }]
        },
        {
          "id" : "PlanDefinition.description",
          "path" : "PlanDefinition.description",
          "short" : "Natural language description of the plan definition",
          "definition" : "A free text natural language description of the plan definition from a consumer's perspective.",
          "comment" : "This description can be used to capture details such as why the plan definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the plan definition 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 plan definition is presumed to be the predominant language in the place the plan definition was created).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.useContext",
          "path" : "PlanDefinition.useContext",
          "short" : "The context that the content is intended to support",
          "definition" : "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 plan definition instances.",
          "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
          "requirements" : "Assist in searching for appropriate content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.useContext",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "UsageContext"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.useContext"
          }]
        },
        {
          "id" : "PlanDefinition.jurisdiction",
          "path" : "PlanDefinition.jurisdiction",
          "short" : "Intended jurisdiction for plan definition (if applicable)",
          "definition" : "A legal or geographic region in which the plan definition is intended to be used.",
          "comment" : "It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.jurisdiction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Jurisdiction"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Countries and regions within which this artifact is targeted for use.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.jurisdiction"
          }]
        },
        {
          "id" : "PlanDefinition.purpose",
          "path" : "PlanDefinition.purpose",
          "short" : "Why this plan definition is defined",
          "definition" : "Explanation of why this plan definition is needed and why it has been designed as it has.",
          "comment" : "This element does not describe the usage of the plan definition. 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 plan definition.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.purpose",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.purpose"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.usage",
          "path" : "PlanDefinition.usage",
          "short" : "Describes the clinical usage of the plan",
          "definition" : "A detailed description of how the plan definition is used from a clinical perspective.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.usage",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.copyright",
          "path" : "PlanDefinition.copyright",
          "short" : "Use and/or publishing restrictions",
          "definition" : "A copyright statement relating to the plan definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the plan definition.",
          "requirements" : "Consumers must be able to determine any legal restrictions on the use of the plan definition and/or its content.",
          "alias" : ["License",
          "Restrictions"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.copyright",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.copyright"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.approvalDate",
          "path" : "PlanDefinition.approvalDate",
          "short" : "When the plan definition was approved by publisher",
          "definition" : "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
          "comment" : "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.approvalDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.approvalDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.lastReviewDate",
          "path" : "PlanDefinition.lastReviewDate",
          "short" : "When the plan definition was last reviewed",
          "definition" : "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
          "comment" : "If specified, this date follows the original approval date.",
          "requirements" : "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.lastReviewDate",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.lastReviewDate"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.effectivePeriod",
          "path" : "PlanDefinition.effectivePeriod",
          "short" : "When the plan definition is expected to be used",
          "definition" : "The period during which the plan definition content was or is planned to be in active use.",
          "comment" : "The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
          "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the plan definition are or are expected to be used instead.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.effectivePeriod",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.effectivePeriod"
          },
          {
            "identity" : "objimpl",
            "map" : "no-gen-base"
          }]
        },
        {
          "id" : "PlanDefinition.topic",
          "path" : "PlanDefinition.topic",
          "short" : "E.g. Education, Treatment, Assessment",
          "definition" : "Descriptive topics related to the content of the plan definition. Topics provide a high-level categorization of the definition that can be useful for filtering and searching.",
          "requirements" : "Repositories must be able to determine how to categorize the plan definition so that it can be found by topical searches.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.topic",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DefinitionTopic"
            }],
            "strength" : "example",
            "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject[x]"
          }]
        },
        {
          "id" : "PlanDefinition.author",
          "path" : "PlanDefinition.author",
          "short" : "Who authored the content",
          "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.author",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT]"
          }]
        },
        {
          "id" : "PlanDefinition.editor",
          "path" : "PlanDefinition.editor",
          "short" : "Who edited the content",
          "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.editor",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.reviewer",
          "path" : "PlanDefinition.reviewer",
          "short" : "Who reviewed the content",
          "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.reviewer",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.endorser",
          "path" : "PlanDefinition.endorser",
          "short" : "Who endorsed the content",
          "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.endorser",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "ContactDetail"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
          }]
        },
        {
          "id" : "PlanDefinition.relatedArtifact",
          "path" : "PlanDefinition.relatedArtifact",
          "short" : "Additional documentation, citations",
          "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
          "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
          "requirements" : "Plan definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.relatedArtifact",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.library",
          "path" : "PlanDefinition.library",
          "short" : "Logic used by the plan definition",
          "definition" : "A reference to a Library resource containing any formal logic used by the plan definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.library",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal",
          "path" : "PlanDefinition.goal",
          "short" : "What the plan is trying to accomplish",
          "definition" : "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
          "requirements" : "Goal information needs to be captured for order sets, protocols, and care plan definitions to better describe the objectives of the protocol activities and to guide the creation of specific goals within the derived care plans and orders.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.id",
          "path" : "PlanDefinition.goal.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.extension",
          "path" : "PlanDefinition.goal.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.modifierExtension",
          "path" : "PlanDefinition.goal.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.category",
          "path" : "PlanDefinition.goal.category",
          "short" : "E.g. Treatment, dietary, behavioral",
          "definition" : "Indicates a category the goal falls within.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.category",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalCategory"
            }],
            "strength" : "example",
            "description" : "Example codes for grouping goals for filtering or presentation.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-category"
          }
        },
        {
          "id" : "PlanDefinition.goal.description",
          "path" : "PlanDefinition.goal.description",
          "short" : "Code or text describing the goal",
          "definition" : "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".",
          "comment" : "If no code is available, use CodeableConcept.text.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.description",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalDescription"
            }],
            "strength" : "example",
            "description" : "Describes goals that can be achieved.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/clinical-findings"
          }
        },
        {
          "id" : "PlanDefinition.goal.priority",
          "path" : "PlanDefinition.goal.priority",
          "short" : "high-priority | medium-priority | low-priority",
          "definition" : "Identifies the expected level of importance associated with reaching/sustaining the defined goal.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalPriority"
            }],
            "strength" : "preferred",
            "description" : "Indicates the level of importance associated with reaching or sustaining a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-priority"
          }
        },
        {
          "id" : "PlanDefinition.goal.start",
          "path" : "PlanDefinition.goal.start",
          "short" : "When goal pursuit begins",
          "definition" : "The event after which the goal should begin being pursued.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.start",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalStartEvent"
            }],
            "strength" : "example",
            "description" : "Identifies the types of events that might trigger the start of a goal.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/goal-start-event"
          }
        },
        {
          "id" : "PlanDefinition.goal.addresses",
          "path" : "PlanDefinition.goal.addresses",
          "short" : "What does the goal address",
          "definition" : "Identifies problems, conditions, issues, or concerns the goal is intended to address.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.addresses",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalAddresses"
            }],
            "strength" : "example",
            "description" : "Identifies problems, conditions, issues, or concerns that goals may address.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
          }
        },
        {
          "id" : "PlanDefinition.goal.documentation",
          "path" : "PlanDefinition.goal.documentation",
          "short" : "Supporting documentation for the goal",
          "definition" : "Didactic or other informational resources associated with the goal that provide further supporting information about the goal. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target",
          "path" : "PlanDefinition.goal.target",
          "short" : "Target outcome for the goal",
          "definition" : "Indicates what should be done and within what timeframe.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.goal.target",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.id",
          "path" : "PlanDefinition.goal.target.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.extension",
          "path" : "PlanDefinition.goal.target.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.modifierExtension",
          "path" : "PlanDefinition.goal.target.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.goal.target.measure",
          "path" : "PlanDefinition.goal.target.measure",
          "short" : "The parameter whose value is to be tracked",
          "definition" : "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.measure",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "GoalTargetMeasure"
            }],
            "strength" : "example",
            "description" : "Identifies types of parameters that can be tracked to determine goal achievement.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          }
        },
        {
          "id" : "PlanDefinition.goal.target.detail[x]",
          "path" : "PlanDefinition.goal.target.detail[x]",
          "short" : "The target value to be achieved",
          "definition" : "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.detail[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.goal.target.due",
          "path" : "PlanDefinition.goal.target.due",
          "short" : "Reach goal within",
          "definition" : "Indicates the timeframe after the start of the goal in which the goal should be met.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.goal.target.due",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action",
          "path" : "PlanDefinition.action",
          "short" : "Action defined by the plan",
          "definition" : "An action or group of actions to be taken as part of the plan.",
          "comment" : "Note that there is overlap between many of the elements defined here and the ActivityDefinition resource. When an ActivityDefinition is referenced (using the definition element), the overlapping elements in the plan override the content of the referenced ActivityDefinition unless otherwise documented in the specific elements. See the PlanDefinition resource for more detailed information.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{Is a contained Definition}"
          }]
        },
        {
          "id" : "PlanDefinition.action.id",
          "path" : "PlanDefinition.action.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.extension",
          "path" : "PlanDefinition.action.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.modifierExtension",
          "path" : "PlanDefinition.action.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.prefix",
          "path" : "PlanDefinition.action.prefix",
          "short" : "User-visible prefix for the action (e.g. 1. or A.)",
          "definition" : "A user-visible prefix for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.prefix",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.title",
          "path" : "PlanDefinition.action.title",
          "short" : "User-visible title",
          "definition" : "The title of the action displayed to a user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.title",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.title"
          }]
        },
        {
          "id" : "PlanDefinition.action.description",
          "path" : "PlanDefinition.action.description",
          "short" : "Brief description of the action",
          "definition" : "A brief description of the action used to provide a summary to display to the user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.textEquivalent",
          "path" : "PlanDefinition.action.textEquivalent",
          "short" : "Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system",
          "definition" : "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.textEquivalent",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.description"
          }]
        },
        {
          "id" : "PlanDefinition.action.priority",
          "path" : "PlanDefinition.action.priority",
          "short" : "routine | urgent | asap | stat",
          "definition" : "Indicates how quickly the action should be addressed with respect to other actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.priority",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "RequestPriority"
            }],
            "strength" : "required",
            "description" : "Identifies the level of importance to be assigned to actioning the request.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.code",
          "path" : "PlanDefinition.action.code",
          "short" : "Code representing the meaning of the action or sub-actions",
          "definition" : "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.reason",
          "path" : "PlanDefinition.action.reason",
          "short" : "Why the action should be performed",
          "definition" : "A description of why this action is necessary or appropriate.",
          "comment" : "This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.reason",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.documentation",
          "path" : "PlanDefinition.action.documentation",
          "short" : "Supporting documentation for the intended performer of the action",
          "definition" : "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.documentation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "RelatedArtifact"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.goalId",
          "path" : "PlanDefinition.action.goalId",
          "short" : "What goals this action supports",
          "definition" : "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.goalId",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.subject[x]",
          "path" : "PlanDefinition.action.subject[x]",
          "short" : "Type of individual the action is focused on",
          "definition" : "A code or group definition that describes the intended subject of the action and its children, if any.",
          "comment" : "The subject of an action overrides the subject at a parent action or on the root of the PlanDefinition if specified.\n\nIn addition, because the subject needs to be resolved during realization, use of subjects in actions (or in the ActivityDefinition referenced by the action) resolves based on the set of subjects supplied in context and by type (i.e. the patient subject would resolve to a resource of type Patient).",
          "requirements" : "Multiple steps in a protocol often have different groups of steps that are focused on testing different things. The subject of an action specifies the focus of the action and any child actions.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.subject[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Group"]
          }],
          "meaningWhenMissing" : "Patient",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SubjectType"
            }],
            "strength" : "extensible",
            "description" : "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
            "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.subject"
          }]
        },
        {
          "id" : "PlanDefinition.action.trigger",
          "path" : "PlanDefinition.action.trigger",
          "short" : "When the action should be triggered",
          "definition" : "A description of when the action should be triggered.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.trigger",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "TriggerDefinition"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition",
          "path" : "PlanDefinition.action.condition",
          "short" : "Whether or not the action is applicable",
          "definition" : "An expression that describes applicability criteria or start/stop conditions for the action.",
          "comment" : "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all the conditions are true.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.condition.id",
          "path" : "PlanDefinition.action.condition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.extension",
          "path" : "PlanDefinition.action.condition.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.modifierExtension",
          "path" : "PlanDefinition.action.condition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.condition.kind",
          "path" : "PlanDefinition.action.condition.kind",
          "short" : "applicability | start | stop",
          "definition" : "The kind of condition.",
          "comment" : "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.kind",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionConditionKind"
            }],
            "strength" : "required",
            "description" : "Defines the kinds of conditions that can appear on actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.condition.expression",
          "path" : "PlanDefinition.action.condition.expression",
          "short" : "Boolean-valued expression",
          "definition" : "An expression that returns true or false, indicating whether the condition is satisfied.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.condition.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.input",
          "path" : "PlanDefinition.action.input",
          "short" : "Input data requirements",
          "definition" : "Defines input data requirements for the action.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.input",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.output",
          "path" : "PlanDefinition.action.output",
          "short" : "Output data definition",
          "definition" : "Defines the outputs of the action, if any.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.output",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "DataRequirement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction",
          "path" : "PlanDefinition.action.relatedAction",
          "short" : "Relationship to another action",
          "definition" : "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".",
          "comment" : "When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.id",
          "path" : "PlanDefinition.action.relatedAction.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.extension",
          "path" : "PlanDefinition.action.relatedAction.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.modifierExtension",
          "path" : "PlanDefinition.action.relatedAction.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.relatedAction.actionId",
          "path" : "PlanDefinition.action.relatedAction.actionId",
          "short" : "What action is this related to",
          "definition" : "The element id of the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.actionId",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.relatedAction.relationship",
          "path" : "PlanDefinition.action.relatedAction.relationship",
          "short" : "before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end",
          "definition" : "The relationship of this action to the related action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.relationship",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRelationshipType"
            }],
            "strength" : "required",
            "description" : "Defines the types of relationships between actions.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.relatedAction.offset[x]",
          "path" : "PlanDefinition.action.relatedAction.offset[x]",
          "short" : "Time offset for the relationship",
          "definition" : "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.relatedAction.offset[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Duration"
          },
          {
            "code" : "Range"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.timing[x]",
          "path" : "PlanDefinition.action.timing[x]",
          "short" : "When the action should take place",
          "definition" : "An optional value describing when the action should be performed.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.timing[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "dateTime"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Timing"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant",
          "path" : "PlanDefinition.action.participant",
          "short" : "Who should participate in the action",
          "definition" : "Indicates who should participate in performing the action described.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.participant",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.participant.id",
          "path" : "PlanDefinition.action.participant.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.extension",
          "path" : "PlanDefinition.action.participant.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.modifierExtension",
          "path" : "PlanDefinition.action.participant.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.participant.type",
          "path" : "PlanDefinition.action.participant.type",
          "short" : "patient | practitioner | related-person | device",
          "definition" : "The type of participant in the action.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantType"
            }],
            "strength" : "required",
            "description" : "The type of participant for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.participant.role",
          "path" : "PlanDefinition.action.participant.role",
          "short" : "E.g. Nurse, Surgeon, Parent",
          "definition" : "The role the participant should play in performing the described action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.participant.role",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionParticipantRole"
            }],
            "strength" : "example",
            "description" : "Defines roles played by participants for the action.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-participant-role"
          }
        },
        {
          "id" : "PlanDefinition.action.type",
          "path" : "PlanDefinition.action.type",
          "short" : "create | update | remove | fire-event",
          "definition" : "The type of action to perform (create, update, remove).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionType"
            }],
            "strength" : "extensible",
            "description" : "The type of action to be performed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-type"
          }
        },
        {
          "id" : "PlanDefinition.action.groupingBehavior",
          "path" : "PlanDefinition.action.groupingBehavior",
          "short" : "visual-group | logical-group | sentence-group",
          "definition" : "Defines the grouping behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.groupingBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionGroupingBehavior"
            }],
            "strength" : "required",
            "description" : "Defines organization behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.selectionBehavior",
          "path" : "PlanDefinition.action.selectionBehavior",
          "short" : "any | all | all-or-none | exactly-one | at-most-one | one-or-more",
          "definition" : "Defines the selection behavior for the action and its children.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.selectionBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionSelectionBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection behavior of a group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.requiredBehavior",
          "path" : "PlanDefinition.action.requiredBehavior",
          "short" : "must | could | must-unless-documented",
          "definition" : "Defines the required behavior for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.requiredBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionRequiredBehavior"
            }],
            "strength" : "required",
            "description" : "Defines expectations around whether an action or action group is required.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.precheckBehavior",
          "path" : "PlanDefinition.action.precheckBehavior",
          "short" : "yes | no",
          "definition" : "Defines whether the action should usually be preselected.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.precheckBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionPrecheckBehavior"
            }],
            "strength" : "required",
            "description" : "Defines selection frequency behavior for an action or group.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.cardinalityBehavior",
          "path" : "PlanDefinition.action.cardinalityBehavior",
          "short" : "single | multiple",
          "definition" : "Defines whether the action can be selected multiple times.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.cardinalityBehavior",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ActionCardinalityBehavior"
            }],
            "strength" : "required",
            "description" : "Defines behavior for an action or a group for how many times that item may be repeated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
          }
        },
        {
          "id" : "PlanDefinition.action.definition[x]",
          "path" : "PlanDefinition.action.definition[x]",
          "short" : "Description of the activity to be performed",
          "definition" : "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.",
          "comment" : "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.definition[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
            "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
            "http://hl7.org/fhir/StructureDefinition/Questionnaire"]
          },
          {
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Definition.derivedFrom"
          }]
        },
        {
          "id" : "PlanDefinition.action.transform",
          "path" : "PlanDefinition.action.transform",
          "short" : "Transform to apply the template",
          "definition" : "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.",
          "comment" : "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.transform",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue",
          "path" : "PlanDefinition.action.dynamicValue",
          "short" : "Dynamic aspects of the definition",
          "definition" : "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.",
          "comment" : "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.id",
          "path" : "PlanDefinition.action.dynamicValue.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.extension",
          "path" : "PlanDefinition.action.dynamicValue.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "path" : "PlanDefinition.action.dynamicValue.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.path",
          "path" : "PlanDefinition.action.dynamicValue.path",
          "short" : "The path to the element to be set dynamically",
          "definition" : "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/fhirpath.html#simple) for full details).",
          "comment" : "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.path",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.dynamicValue.expression",
          "path" : "PlanDefinition.action.dynamicValue.expression",
          "short" : "An expression that provides the dynamic value for the customization",
          "definition" : "An expression specifying the value of the customized element.",
          "comment" : "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "PlanDefinition.action.dynamicValue.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Expression"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "PlanDefinition.action.action",
          "path" : "PlanDefinition.action.action",
          "short" : "A sub-action",
          "definition" : "Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "PlanDefinition.action.action",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#PlanDefinition.action",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "{InverseRelationship of Definition.partOf}"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "PlanDefinition",
          "path" : "PlanDefinition",
          "min" : 1,
          "max" : "1"
        },
        {
          "id" : "PlanDefinition.extension:cdsHooksEndpoint",
          "path" : "PlanDefinition.extension",
          "sliceName" : "cdsHooksEndpoint",
          "short" : "Service endpoint",
          "definition" : "Defines the service endpoint for the behavior implemented by the PlanDefinition.",
          "min" : 1,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint"]
          }]
        },
        {
          "id" : "PlanDefinition.action",
          "path" : "PlanDefinition.action"
        },
        {
          "id" : "PlanDefinition.action.title",
          "path" : "PlanDefinition.action.title",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.description",
          "path" : "PlanDefinition.action.description",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.priority",
          "path" : "PlanDefinition.action.priority",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.trigger",
          "path" : "PlanDefinition.action.trigger",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.condition",
          "path" : "PlanDefinition.action.condition",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.timing[x]",
          "path" : "PlanDefinition.action.timing[x]",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.participant",
          "path" : "PlanDefinition.action.participant",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.type",
          "path" : "PlanDefinition.action.type",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.selectionBehavior",
          "path" : "PlanDefinition.action.selectionBehavior",
          "mustSupport" : true
        },
        {
          "id" : "PlanDefinition.action.definition[x]",
          "path" : "PlanDefinition.action.definition[x]",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-de",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "elementdefinition-de",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "fhir"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-de",
      "version" : "4.0.1",
      "name" : "DataElement constraint on ElementDefinition data type",
      "status" : "draft",
      "experimental" : false,
      "date" : "2015-02-28",
      "publisher" : "Health Level Seven International (Orders and Observations)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org/special/committees/FHIR"
        }]
      }],
      "description" : "Identifies how the ElementDefinition data type is used when it appears within a data element",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "v2",
        "uri" : "http://hl7.org/v2",
        "name" : "HL7 v2 Mapping"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "iso11179",
        "uri" : "http://metadata-standards.org/11179/",
        "name" : "ISO 11179"
      },
      {
        "identity" : "dex",
        "uri" : "http://ihe.net/data-element-exchange",
        "name" : "IHE Data Element Exchange (DEX)"
      },
      {
        "identity" : "loinc",
        "uri" : "http://loinc.org",
        "name" : "LOINC code for the element"
      }],
      "kind" : "complex-type",
      "abstract" : false,
      "type" : "ElementDefinition",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "ElementDefinition",
          "path" : "ElementDefinition",
          "short" : "Definition of an element in a resource or extension",
          "definition" : "Captures constraints on each element within the resource, profile, or extension.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "eld-2",
            "severity" : "error",
            "human" : "Min <= Max",
            "expression" : "min.empty() or max.empty() or (max = '*') or iif(max != '*', min <= max.toInteger())",
            "xpath" : "not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value)",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-5",
            "severity" : "error",
            "human" : "if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding",
            "expression" : "contentReference.empty() or (type.empty() and defaultValue.empty() and fixed.empty() and pattern.empty() and example.empty() and minValue.empty() and maxValue.empty() and maxLength.empty() and binding.empty())",
            "xpath" : "not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')])  or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding)))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-6",
            "severity" : "error",
            "human" : "Fixed value may only be specified if there is one type",
            "expression" : "fixed.empty() or (type.count()  <= 1)",
            "xpath" : "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)<=1)",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-7",
            "severity" : "error",
            "human" : "Pattern may only be specified if there is one type",
            "expression" : "pattern.empty() or (type.count() <= 1)",
            "xpath" : "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)<=1)",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-8",
            "severity" : "error",
            "human" : "Pattern and fixed are mutually exclusive",
            "expression" : "pattern.empty() or fixed.empty()",
            "xpath" : "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'fixed')]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-11",
            "severity" : "error",
            "human" : "Binding can only be present for coded elements, string, and uri",
            "expression" : "binding.empty() or type.code.empty() or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'string') or (code = 'uri')).exists()",
            "xpath" : "not(exists(f:binding)) or (count(f:type/f:code) = 0) or  f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','string', 'uri')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-13",
            "severity" : "error",
            "human" : "Types must be unique by code",
            "expression" : "type.select(code).isDistinct()",
            "xpath" : "not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-14",
            "severity" : "error",
            "human" : "Constraints must be unique by key",
            "expression" : "constraint.select(key).isDistinct()",
            "xpath" : "count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-15",
            "severity" : "error",
            "human" : "default value and meaningWhenMissing are mutually exclusive",
            "expression" : "defaultValue.empty() or meaningWhenMissing.empty()",
            "xpath" : "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-16",
            "severity" : "error",
            "human" : "sliceName must be composed of proper tokens separated by \"/\"",
            "expression" : "sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\\\/\\\\-_\\\\[\\\\]\\\\@]+$')",
            "xpath" : "not(exists(f:sliceName/@value)) or matches(f:sliceName/@value, '^[a-zA-Z0-9\\/\\-_\\[\\]\\@]+$')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-18",
            "severity" : "error",
            "human" : "Must have a modifier reason if isModifier = true",
            "expression" : "(isModifier.exists() and isModifier) implies isModifierReason.exists()",
            "xpath" : "not(f:isModifier/@value = 'true') or exists(f:isModifierReason)",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-19",
            "severity" : "error",
            "human" : "Element names cannot include some special characters",
            "expression" : "path.matches('[^\\\\s\\\\.,:;\\\\\\'\"\\\\/|?!@#$%&*()\\\\[\\\\]{}]{1,64}(\\\\.[^\\\\s\\\\.,:;\\\\\\'\"\\\\/|?!@#$%&*()\\\\[\\\\]{}]{1,64}(\\\\[x\\\\])?(\\\\:[^\\\\s\\\\.]+)?)*')",
            "xpath" : "matches(path/@value, '[^\\s\\.,:;\\'&quot;\\/|?!@#$%&amp;*()\\[\\]{}]{1,64}(\\.[^\\s\\.,:;\\'&quot;\\/|?!@#$%&amp;*()\\[\\]{}]{1,64}(\\[x\\])?(\\:[^\\s\\.]+)?)*')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-20",
            "severity" : "warning",
            "human" : "Element names should be simple alphanumerics with a max of 64 characters, or code generation tools may be broken",
            "expression" : "path.matches('[A-Za-z][A-Za-z0-9]*(\\\\.[a-z][A-Za-z0-9]*(\\\\[x])?)*')",
            "xpath" : "matches(path/@value, '[A-Za-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*(\\[x])?)*')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-22",
            "severity" : "error",
            "human" : "sliceIsConstraining can only appear if slicename is present",
            "expression" : "sliceIsConstraining.exists() implies sliceName.exists()",
            "xpath" : "exists(f:sliceName) or not(exists(f:sliceIsConstraining))",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          },
          {
            "identity" : "v2",
            "map" : "OM1"
          },
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=DEFN]"
          },
          {
            "identity" : "iso11179",
            "map" : "Data_Element"
          },
          {
            "identity" : "dex",
            "map" : "RetrieveMetadata response"
          }]
        },
        {
          "id" : "ElementDefinition.id",
          "path" : "ElementDefinition.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.extension",
          "path" : "ElementDefinition.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.extension:Question",
          "path" : "ElementDefinition.extension",
          "sliceName" : "Question",
          "short" : "Prompt for element phrased as question",
          "definition" : "The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey).",
          "comment" : "Question and label serve similar purposes in they both can be used to prompt for capturing a data element.  Whether the question form or label form should be used will depend on the type of instrument being used to capture the information.  The ordering is in order of preference.  I.e. Most preferred question form is listed first.  Note that this is for alternate phrasings of the question.  Language translations are handled using the ISO 21090 string translation extensions.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/elementdefinition-question"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF-level)"
          }]
        },
        {
          "id" : "ElementDefinition.extension:Question.id",
          "path" : "ElementDefinition.extension.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.extension:Question.extension",
          "path" : "ElementDefinition.extension.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ElementDefinition.extension:Question.url",
          "path" : "ElementDefinition.extension.url",
          "representation" : ["xmlAttr"],
          "short" : "identifies the meaning of the extension",
          "definition" : "Source of the definition for the extension code - a logical name or a URL.",
          "comment" : "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Extension.url",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "uri"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "fixedUri" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-question",
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.extension:Question.value[x]",
          "path" : "ElementDefinition.extension.value[x]",
          "short" : "Value of extension",
          "definition" : "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Extension.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits",
          "path" : "ElementDefinition.extension",
          "sliceName" : "AllowedUnits",
          "short" : "Units to use for measured value",
          "definition" : "Identifies the units of measure in which the element should be captured or expressed.",
          "comment" : "Use a value set if more than one unit of measure is possible.  Value sets will typically be short enough to display in a drop-down selection list.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM2.2"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits.id",
          "path" : "ElementDefinition.extension.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits.extension",
          "path" : "ElementDefinition.extension.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Extension",
          "definition" : "An Extension",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits.url",
          "path" : "ElementDefinition.extension.url",
          "representation" : ["xmlAttr"],
          "short" : "identifies the meaning of the extension",
          "definition" : "Source of the definition for the extension code - a logical name or a URL.",
          "comment" : "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Extension.url",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "uri"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "fixedUri" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits",
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits.value[x]",
          "path" : "ElementDefinition.extension.value[x]",
          "short" : "Value of extension",
          "definition" : "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Extension.value[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          },
          {
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Units"
            }],
            "strength" : "required",
            "description" : "Units of measure allowed for an element.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.modifierExtension",
          "path" : "ElementDefinition.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.path",
          "path" : "ElementDefinition.path",
          "short" : "Path of the element in the hierarchy of elements",
          "definition" : "The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.path",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "Name, Identifier & Context"
          }]
        },
        {
          "id" : "ElementDefinition.representation",
          "path" : "ElementDefinition.representation",
          "short" : "xmlAttr | xmlText | typeAttr | cdaText | xhtml",
          "definition" : "Codes that define how this element is represented in instances, when the deviation varies from the normal case.",
          "comment" : "In resources, this is rarely used except for special cases where the representation deviates from the normal, and can only be done in the base standard (and profiles must reproduce what the base standard does). This element is used quite commonly in Logical models when the logical models represent a specific serialization format (e.g. CDA, v2 etc.).",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.representation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "PropertyRepresentation"
            }],
            "strength" : "required",
            "description" : "How a property is represented when serialized.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/property-representation|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.sliceName",
          "path" : "ElementDefinition.sliceName",
          "short" : "Name for this particular element (in a set of slices)",
          "definition" : "The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.",
          "comment" : "The name SHALL be unique within the structure within the context of the constrained resource element.  (Though to avoid confusion, uniqueness across all elements is recommended.).",
          "requirements" : "May also be used for code generation purposes.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.sliceName",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.sliceIsConstraining",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "ElementDefinition.sliceIsConstraining",
          "short" : "If this slice definition constrains an inherited slice definition (or not)",
          "definition" : "If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.",
          "comment" : "If set to true, an ancestor profile SHALL have a slicing definition with this name.  If set to false, no ancestor profile is permitted to have a slicing definition with this name.",
          "requirements" : "Allows detection of a situation where an ancestor profile adds or removes slicing with the same name where that might impact the child profile.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.sliceIsConstraining",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.label",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.label",
          "short" : "Name for element to display with or prompt for element",
          "definition" : "A single preferred label which is the text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.",
          "comment" : "See also the extension (http://hl7.org/fhir/StructureDefinition/elementdefinition-question)[extension-elementdefinition-question.html].",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.label",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./code/display"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.code",
          "path" : "ElementDefinition.code",
          "short" : "Corresponding codes in terminologies",
          "definition" : "A code that has the same meaning as the element in a particular terminology.",
          "comment" : "The concept SHALL be properly aligned with the data element definition and other constraints, as defined in the code system, including relationships, of any code listed here.  Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself. The mappings may be used to provide more or less granular or structured equivalences in the code system.",
          "requirements" : "Links the meaning of an element to an external terminology, and is very useful for searching and indexing.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.code",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ElementDefinitionCode"
            }],
            "strength" : "example",
            "description" : "Codes that indicate the meaning of a data element.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/observation-codes"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM1.7"
          },
          {
            "identity" : "rim",
            "map" : "./code (root or translation)"
          },
          {
            "identity" : "iso11179",
            "map" : "(Data_Element).data_element_concept.identifier"
          },
          {
            "identity" : "loinc",
            "map" : "LOINC_NUM"
          }]
        },
        {
          "id" : "ElementDefinition.slicing",
          "path" : "ElementDefinition.slicing",
          "short" : "This element is sliced - slices follow",
          "definition" : "Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).",
          "comment" : "The first element in the sequence, the one that carries the slicing, is the definition that applies to all the slices. This is based on the unconstrained element, but can apply any constraints as appropriate. This may include the common constraints on the children of the element.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.slicing",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "eld-1",
            "severity" : "error",
            "human" : "If there are no discriminators, there must be a definition",
            "expression" : "discriminator.exists() or description.exists()",
            "xpath" : "(f:discriminator) or (f:description)",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.id",
          "path" : "ElementDefinition.slicing.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.extension",
          "path" : "ElementDefinition.slicing.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.discriminator",
          "path" : "ElementDefinition.slicing.discriminator",
          "short" : "Element values that are used to distinguish the slices",
          "definition" : "Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.",
          "comment" : "If there is no discriminator, the content is hard to process, so this should be avoided.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.slicing.discriminator",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.discriminator.id",
          "path" : "ElementDefinition.slicing.discriminator.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.discriminator.extension",
          "path" : "ElementDefinition.slicing.discriminator.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.discriminator.type",
          "path" : "ElementDefinition.slicing.discriminator.type",
          "short" : "value | exists | pattern | type | profile",
          "definition" : "How the element value is interpreted when discrimination is evaluated.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.slicing.discriminator.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DiscriminatorType"
            }],
            "strength" : "required",
            "description" : "How an element value is interpreted when discrimination is evaluated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/discriminator-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.discriminator.path",
          "path" : "ElementDefinition.slicing.discriminator.path",
          "short" : "Path to element value",
          "definition" : "A FHIRPath expression, using [the simple subset of FHIRPath](http://hl7.org/fhir/fhirpath.html#simple), that is used to identify the element on which discrimination is based.",
          "comment" : "The only FHIRPath functions that are allowed are as(type), resolve(), and extension(url).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.slicing.discriminator.path",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.description",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.slicing.description",
          "short" : "Text description of how slicing works (or not)",
          "definition" : "A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.",
          "comment" : "If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.slicing.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["eld-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.ordered",
          "path" : "ElementDefinition.slicing.ordered",
          "short" : "If elements must be in same order as slices",
          "definition" : "If the matching elements have to occur in the same order as defined in the profile.",
          "comment" : "Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.slicing.ordered",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "Order is not required unless specified",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.slicing.rules",
          "path" : "ElementDefinition.slicing.rules",
          "short" : "closed | open | openAtEnd",
          "definition" : "Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.",
          "comment" : "Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.slicing.rules",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SlicingRules"
            }],
            "strength" : "required",
            "description" : "How slices are interpreted when evaluating an instance.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/resource-slicing-rules|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.short",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.short",
          "short" : "Concise definition for space-constrained presentation",
          "definition" : "A concise description of what this element means (e.g. for use in autogenerated summaries).",
          "comment" : "It is easy for a different short definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing short definitions in a profile.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.short",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          },
          {
            "identity" : "iso11179",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.definition",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.definition",
          "short" : "Full formal definition as narrative text",
          "definition" : "Provides a complete explanation of the meaning of the data element for human readability.  For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource. (Note: The text you are reading is specified in ElementDefinition.definition).",
          "comment" : "It is easy for a different definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing definitions in a profile.",
          "requirements" : "To allow a user to state the usage of an element in a particular context.",
          "alias" : ["Description"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.definition",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM1.6, OM1.41"
          },
          {
            "identity" : "rim",
            "map" : "./text"
          },
          {
            "identity" : "iso11179",
            "map" : "(Designatable_Item).definition.text  acceptability=preferred in default context"
          },
          {
            "identity" : "loinc",
            "map" : "TERM DEFINITION/DESCRIPTION(S)"
          }]
        },
        {
          "id" : "ElementDefinition.comment",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.comment",
          "short" : "Comments about the use of this element",
          "definition" : "Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).",
          "comment" : "If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.comment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "NTE, OM1.32, OM1.33, OM1.39"
          },
          {
            "identity" : "rim",
            "map" : "./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code"
          },
          {
            "identity" : "iso11179",
            "map" : "(Administered_Item).explanatory_comment"
          },
          {
            "identity" : "loinc",
            "map" : "COMMENTS"
          }]
        },
        {
          "id" : "ElementDefinition.requirements",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.requirements",
          "short" : "Why this resource has been created",
          "definition" : "This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.",
          "comment" : "This element does not describe the usage of the element (that's done in comments), rather it's for traceability of *why* the element is either needed or why the constraints exist as they do.  This may be used to point to source materials or specifications that drove the structure of this data element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.requirements",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./inboundRelationship[typeCode=META]/source[classCode=ACT, moodCode=EVN, isCriterionInd=true]/reasonCode/originalText"
          },
          {
            "identity" : "iso11179",
            "map" : "(Registered_item).document_reference[document_type=requirements].notation"
          }]
        },
        {
          "id" : "ElementDefinition.alias",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.alias",
          "short" : "Other names",
          "definition" : "Identifies additional names by which this element might also be known.",
          "requirements" : "Allows for better easier recognition of the element by multiple communities, including international communities.",
          "alias" : ["synonym",
          "other name"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.alias",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM1.8, OM1.52"
          },
          {
            "identity" : "rim",
            "map" : "Not currently expressible"
          },
          {
            "identity" : "iso11179",
            "map" : "(Designatable_Item).designation.sign  acceptability!=preferred or context is other than default"
          },
          {
            "identity" : "loinc",
            "map" : "RELATED NAMES (only some of these apply)"
          }]
        },
        {
          "id" : "ElementDefinition.min",
          "path" : "ElementDefinition.min",
          "short" : "Minimum Cardinality",
          "definition" : "The minimum number of times this element SHALL appear in the instance.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.min",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "unsignedInt"
          }],
          "condition" : ["eld-2"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "Minimum  size of  data element  values?"
          }]
        },
        {
          "id" : "ElementDefinition.max",
          "path" : "ElementDefinition.max",
          "short" : "Maximum Cardinality (a number or *)",
          "definition" : "The maximum number of times this element is permitted to appear in the instance.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.max",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["eld-3",
          "eld-2"],
          "constraint" : [{
            "key" : "eld-3",
            "severity" : "error",
            "human" : "Max SHALL be a number or \"*\"",
            "expression" : "empty() or ($this = '*') or (toInteger() >= 0)",
            "xpath" : "@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OMC.10"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "Maximum  size of  data element  values?"
          }]
        },
        {
          "id" : "ElementDefinition.base",
          "path" : "ElementDefinition.base",
          "short" : "Base definition information for tools",
          "definition" : "Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. When the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same.",
          "comment" : "The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. For tooling simplicity, the base information must always be populated in element definitions in snap shots, even if it is the same.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.base",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.base.id",
          "path" : "ElementDefinition.base.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.base.extension",
          "path" : "ElementDefinition.base.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.base.path",
          "path" : "ElementDefinition.base.path",
          "short" : "Path that identifies the base element",
          "definition" : "The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [StructureDefinition](http://hl7.org/fhir/structuredefinition.html#) without a StructureDefinition.base.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.base.path",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.base.min",
          "path" : "ElementDefinition.base.min",
          "short" : "Min cardinality of the base element",
          "definition" : "Minimum cardinality of the base element identified by the path.",
          "comment" : "This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.base.min",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "unsignedInt"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.base.max",
          "path" : "ElementDefinition.base.max",
          "short" : "Max cardinality of the base element",
          "definition" : "Maximum cardinality of the base element identified by the path.",
          "comment" : "This is provided to code generation, since the serialization representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.base.max",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.contentReference",
          "path" : "ElementDefinition.contentReference",
          "short" : "Reference to definition of content for the element",
          "definition" : "Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.",
          "comment" : "ContentReferences can only be defined in specializations, not constrained types, and they cannot be changed and always reference the non-constrained definition.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.contentReference",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "condition" : ["eld-5"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.type",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "TypeRef"
          }],
          "path" : "ElementDefinition.type",
          "short" : "Data type and Profile for this element",
          "definition" : "The data type or resource that the value of this element is permitted to be.",
          "comment" : "The Type of the element can be left blank in a differential constraint, in which case the type is inherited from the resource. Abstract types are not permitted to appear as a type when multiple types are listed.  (I.e. Abstract types cannot be part of a choice).",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.type",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Element"
          }],
          "condition" : ["eld-13"],
          "constraint" : [{
            "key" : "eld-4",
            "severity" : "error",
            "human" : "Aggregation may only be specified if one of the allowed types for the element is a reference",
            "expression" : "aggregation.empty() or (code = 'Reference') or (code = 'canonical')",
            "xpath" : "not(exists(f:aggregation)) or exists(f:code[@value = 'Reference']) or exists(f:code[@value = 'canonical'])",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "eld-17",
            "severity" : "error",
            "human" : "targetProfile is only allowed if the type is Reference or canonical",
            "expression" : "(code='Reference' or code = 'canonical') or targetProfile.empty()",
            "xpath" : "not(exists(f:targetProfile)) or (f:code/@value = 'Reference')",
            "source" : "http://hl7.org/fhir/StructureDefinition/ElementDefinition"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM1.3, OMC.9"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".domain.data+Q14type"
          },
          {
            "identity" : "dex",
            "map" : "valueDomain.dataType"
          },
          {
            "identity" : "loinc",
            "map" : "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)"
          }]
        },
        {
          "id" : "ElementDefinition.type.id",
          "path" : "ElementDefinition.type.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.type.extension",
          "path" : "ElementDefinition.type.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.type.code",
          "path" : "ElementDefinition.type.code",
          "short" : "Data type or Resource (reference to definition)",
          "definition" : "URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. \"string\" is a reference to http://hl7.org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.",
          "comment" : "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.type.code",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "FHIRDefinedTypeExt"
            }],
            "strength" : "extensible",
            "description" : "Either a resource or a data type, including logical model types.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/defined-types"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM1.3"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".domain.data+Q14type"
          },
          {
            "identity" : "loinc",
            "map" : "HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)"
          }]
        },
        {
          "id" : "ElementDefinition.type.profile",
          "path" : "ElementDefinition.type.profile",
          "short" : "Profiles (StructureDefinition or IG) - one must apply",
          "definition" : "Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide.",
          "comment" : "It is possible to profile  backbone element (e.g. part of a resource), using the [profile-element](http://hl7.org/fhir/extension-elementdefinition-profile-element.html) extension.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.type.profile",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition",
            "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.type.targetProfile",
          "path" : "ElementDefinition.type.targetProfile",
          "short" : "Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply",
          "definition" : "Used when the type is \"Reference\" or \"canonical\", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.type.targetProfile",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition",
            "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.type.aggregation",
          "path" : "ElementDefinition.type.aggregation",
          "short" : "contained | referenced | bundled - how aggregated",
          "definition" : "If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.",
          "comment" : "See [Aggregation Rules](http://hl7.org/fhir/elementdefinition.html#aggregation) for further clarification.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.type.aggregation",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "code"
          }],
          "condition" : ["eld-4"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AggregationMode"
            }],
            "strength" : "required",
            "description" : "How resource references can be aggregated.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/resource-aggregation-mode|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.type.versioning",
          "path" : "ElementDefinition.type.versioning",
          "short" : "either | independent | specific",
          "definition" : "Whether this reference needs to be version specific or version independent, or whether either can be used.",
          "comment" : "The base specification never makes a rule as to which form is allowed, but implementation guides may do this. See [Aggregation Rules](http://hl7.org/fhir/elementdefinition.html#aggregation) for further clarification.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.type.versioning",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ReferenceVersionRules"
            }],
            "strength" : "required",
            "description" : "Whether a reference needs to be version specific or version independent, or whether either can be used.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/reference-version-rules|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.defaultValue[x]",
          "path" : "ElementDefinition.defaultValue[x]",
          "short" : "Specified value if missing from instance",
          "definition" : "The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').",
          "comment" : "Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed, or changed in constraints on content models. Defining default values creates many difficulties in implementation (e.g. when is a value missing?). For these reasons, default values are (and should be) used extremely sparingly. \n\nNo default values are ever defined in the FHIR specification, nor can they be defined in constraints (\"profiles\") on data types or resources. This element only exists so that default values may be defined in logical models.\r\n  This element should only be used on child elements of complex data elements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.defaultValue[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "base64Binary"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "canonical"
          },
          {
            "code" : "code"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "id"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "markdown"
          },
          {
            "code" : "oid"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "string"
          },
          {
            "code" : "time"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "url"
          },
          {
            "code" : "uuid"
          },
          {
            "code" : "Address"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Annotation"
          },
          {
            "code" : "Attachment"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "ContactPoint"
          },
          {
            "code" : "Count"
          },
          {
            "code" : "Distance"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "HumanName"
          },
          {
            "code" : "Identifier"
          },
          {
            "code" : "Money"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "Reference"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "Signature"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "ContactDetail"
          },
          {
            "code" : "Contributor"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "ParameterDefinition"
          },
          {
            "code" : "RelatedArtifact"
          },
          {
            "code" : "TriggerDefinition"
          },
          {
            "code" : "UsageContext"
          },
          {
            "code" : "Dosage"
          },
          {
            "code" : "Meta"
          }],
          "condition" : ["eld-15"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.meaningWhenMissing",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.meaningWhenMissing",
          "short" : "Implicit meaning when this element is missing",
          "definition" : "The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing').",
          "comment" : "Implicit meanings for missing values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. An implicit meaning for a missing value can never be changed, and specifying one has the consequence that constraining its use in profiles eliminates use cases as possibilities, not merely moving them out of scope.\r\n  This element should only be used on child elements of complex data elements.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.meaningWhenMissing",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "markdown"
          }],
          "condition" : ["eld-15"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.orderMeaning",
          "path" : "ElementDefinition.orderMeaning",
          "short" : "What the order of the elements means",
          "definition" : "If present, indicates that the order of the repeating element has meaning and describes what that meaning is.  If absent, it means that the order of the element has no meaning.",
          "comment" : "This element can only be asserted on repeating elements and can only be introduced when defining resources or data types.  It can be further refined profiled elements but if absent in the base type, a profile cannot assert meaning.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.orderMeaning",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.fixed[x]",
          "path" : "ElementDefinition.fixed[x]",
          "short" : "Value must be exactly this",
          "definition" : "Specifies a value that SHALL be exactly the value  for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.",
          "comment" : "This is not recommended for Coding and CodeableConcept since these often have highly contextual properties such as version or display.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.fixed[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "base64Binary"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "canonical"
          },
          {
            "code" : "code"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "id"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "markdown"
          },
          {
            "code" : "oid"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "string"
          },
          {
            "code" : "time"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "url"
          },
          {
            "code" : "uuid"
          },
          {
            "code" : "Address"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Annotation"
          },
          {
            "code" : "Attachment"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "ContactPoint"
          },
          {
            "code" : "Count"
          },
          {
            "code" : "Distance"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "HumanName"
          },
          {
            "code" : "Identifier"
          },
          {
            "code" : "Money"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "Reference"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "Signature"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "ContactDetail"
          },
          {
            "code" : "Contributor"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "ParameterDefinition"
          },
          {
            "code" : "RelatedArtifact"
          },
          {
            "code" : "TriggerDefinition"
          },
          {
            "code" : "UsageContext"
          },
          {
            "code" : "Dosage"
          },
          {
            "code" : "Meta"
          }],
          "condition" : ["eld-5",
          "eld-6",
          "eld-8"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "N/A (only relevant when constraining, which 11179 doesn't do)"
          }]
        },
        {
          "id" : "ElementDefinition.pattern[x]",
          "path" : "ElementDefinition.pattern[x]",
          "short" : "Value must have at least these property values",
          "definition" : "Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example.  \n\nWhen pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly.\n\nWhen pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] array must (recursively) match at least one element from the instance array.\n\nWhen pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e.,\n\n1. If primitive: it must match exactly the pattern value\n2. If a complex object: it must match (recursively) the pattern value\n3. If an array: it must match (recursively) the pattern value.",
          "comment" : "Mostly used for fixing values of CodeableConcept. In general, pattern[x] is not intended for use with primitive types, where is has the same meaning as fixed[x].",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.pattern[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "base64Binary"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "canonical"
          },
          {
            "code" : "code"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "id"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "markdown"
          },
          {
            "code" : "oid"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "string"
          },
          {
            "code" : "time"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "url"
          },
          {
            "code" : "uuid"
          },
          {
            "code" : "Address"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Annotation"
          },
          {
            "code" : "Attachment"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "ContactPoint"
          },
          {
            "code" : "Count"
          },
          {
            "code" : "Distance"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "HumanName"
          },
          {
            "code" : "Identifier"
          },
          {
            "code" : "Money"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "Reference"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "Signature"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "ContactDetail"
          },
          {
            "code" : "Contributor"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "ParameterDefinition"
          },
          {
            "code" : "RelatedArtifact"
          },
          {
            "code" : "TriggerDefinition"
          },
          {
            "code" : "UsageContext"
          },
          {
            "code" : "Dosage"
          },
          {
            "code" : "Meta"
          }],
          "condition" : ["eld-5",
          "eld-7",
          "eld-8"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.example",
          "path" : "ElementDefinition.example",
          "short" : "Example value (as defined for type)",
          "definition" : "A sample value for this element demonstrating the type of information that would typically be found in the element.",
          "comment" : "Examples will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be.  (I.e. Example values for dates or quantities would generally be unnecessary.)  If the example value is fully populated, the publication tool can generate an instance automatically.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.example",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.example.id",
          "path" : "ElementDefinition.example.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.example.extension",
          "path" : "ElementDefinition.example.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.example.label",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.example.label",
          "short" : "Describes the purpose of this example",
          "definition" : "Describes the purpose of this example amoung the set of examples.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.example.label",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.example.value[x]",
          "path" : "ElementDefinition.example.value[x]",
          "short" : "Value of Example (one of allowed types)",
          "definition" : "The actual value for the element, which must be one of the types allowed for this element.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.example.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "base64Binary"
          },
          {
            "code" : "boolean"
          },
          {
            "code" : "canonical"
          },
          {
            "code" : "code"
          },
          {
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "id"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "markdown"
          },
          {
            "code" : "oid"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "string"
          },
          {
            "code" : "time"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "uri"
          },
          {
            "code" : "url"
          },
          {
            "code" : "uuid"
          },
          {
            "code" : "Address"
          },
          {
            "code" : "Age"
          },
          {
            "code" : "Annotation"
          },
          {
            "code" : "Attachment"
          },
          {
            "code" : "CodeableConcept"
          },
          {
            "code" : "Coding"
          },
          {
            "code" : "ContactPoint"
          },
          {
            "code" : "Count"
          },
          {
            "code" : "Distance"
          },
          {
            "code" : "Duration"
          },
          {
            "code" : "HumanName"
          },
          {
            "code" : "Identifier"
          },
          {
            "code" : "Money"
          },
          {
            "code" : "Period"
          },
          {
            "code" : "Quantity"
          },
          {
            "code" : "Range"
          },
          {
            "code" : "Ratio"
          },
          {
            "code" : "Reference"
          },
          {
            "code" : "SampledData"
          },
          {
            "code" : "Signature"
          },
          {
            "code" : "Timing"
          },
          {
            "code" : "ContactDetail"
          },
          {
            "code" : "Contributor"
          },
          {
            "code" : "DataRequirement"
          },
          {
            "code" : "Expression"
          },
          {
            "code" : "ParameterDefinition"
          },
          {
            "code" : "RelatedArtifact"
          },
          {
            "code" : "TriggerDefinition"
          },
          {
            "code" : "UsageContext"
          },
          {
            "code" : "Dosage"
          },
          {
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".example"
          },
          {
            "identity" : "loinc",
            "map" : "EXMPL_ANSWERS"
          }]
        },
        {
          "id" : "ElementDefinition.minValue[x]",
          "path" : "ElementDefinition.minValue[x]",
          "short" : "Minimum Allowed Value (for some types)",
          "definition" : "The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.",
          "comment" : "Except for date/date/instant, the type of the minValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of minValue[x] SHALL be either the same, or a [Duration](http://hl7.org/fhir/datatypes.html#Duration) which specifies a relative time limit to the current time. The duration value is positive, and is subtracted from the current clock to determine the minimum allowable value.   A minimum value for a Quantity is interpreted as an canonical minimum - e.g. you cannot provide 100mg if the minimum value is 10g.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.minValue[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "time"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "Quantity"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.maxValue[x]",
          "path" : "ElementDefinition.maxValue[x]",
          "short" : "Maximum Allowed Value (for some types)",
          "definition" : "The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.",
          "comment" : "Except for date/date/instant, the type of the maxValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of maxValue[x] SHALL be either the same, or a [Duration](http://hl7.org/fhir/datatypes.html#Duration) which specifies a relative time limit to the current time. The duration value is positive, and is added to the current clock to determine the maximum allowable value.   A maximum value for a Quantity is interpreted as an canonical maximum - e.g. you cannot provide 10g if the maximum value is 50mg.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.maxValue[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "date"
          },
          {
            "code" : "dateTime"
          },
          {
            "code" : "instant"
          },
          {
            "code" : "time"
          },
          {
            "code" : "decimal"
          },
          {
            "code" : "integer"
          },
          {
            "code" : "positiveInt"
          },
          {
            "code" : "unsignedInt"
          },
          {
            "code" : "Quantity"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.maxLength",
          "path" : "ElementDefinition.maxLength",
          "short" : "Max length for strings",
          "definition" : "Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.",
          "comment" : "Receivers are not required to reject instances that exceed the maximum length.  The full length could be stored.  In some cases, data might be truncated, though truncation should be undertaken with care and an understanding of the consequences of doing so. If not specified, there is no conformance expectation for length support.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.maxLength",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "integer"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OMC.12"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".domain.maximum_character_quantity"
          }]
        },
        {
          "id" : "ElementDefinition.condition",
          "path" : "ElementDefinition.condition",
          "short" : "Reference to invariant about presence",
          "definition" : "A reference to an invariant that may make additional statements about the cardinality or value in the instance.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.condition",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint",
          "path" : "ElementDefinition.constraint",
          "short" : "Condition that must evaluate to true",
          "definition" : "Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.",
          "comment" : "Constraints should be declared on the \"context\" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.constraint",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "eld-21",
            "severity" : "warning",
            "human" : "Constraints should have an expression or else validators will not be able to enforce them",
            "expression" : "expression.exists()",
            "xpath" : "exists(f:expression/@value)"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "??"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.id",
          "path" : "ElementDefinition.constraint.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.extension",
          "path" : "ElementDefinition.constraint.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.key",
          "path" : "ElementDefinition.constraint.key",
          "short" : "Target of 'condition' reference above",
          "definition" : "Allows identification of which elements have their cardinalities impacted by the constraint.  Will not be referenced for constraints that do not affect cardinality.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.key",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "condition" : ["eld-14"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.requirements",
          "path" : "ElementDefinition.constraint.requirements",
          "short" : "Why this constraint is necessary or appropriate",
          "definition" : "Description of why this constraint is necessary or appropriate.",
          "comment" : "To be used if the reason for the constraint might not be intuitive to all implementers.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.requirements",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.severity",
          "path" : "ElementDefinition.constraint.severity",
          "short" : "error | warning",
          "definition" : "Identifies the impact constraint violation has on the conformance of the instance.",
          "comment" : "This allows constraints to be asserted as \"shall\" (error) and \"should\" (warning).",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.severity",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ConstraintSeverity"
            }],
            "strength" : "required",
            "description" : "SHALL applications comply with this constraint?",
            "valueSet" : "http://hl7.org/fhir/ValueSet/constraint-severity|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.human",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.constraint.human",
          "short" : "Human description of constraint",
          "definition" : "Text that can be used to describe the constraint in messages identifying that the constraint has been violated.",
          "comment" : "Should be expressed in business terms as much as possible.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.human",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.expression",
          "path" : "ElementDefinition.constraint.expression",
          "short" : "FHIRPath expression of constraint",
          "definition" : "A [FHIRPath](http://hl7.org/fhir/fhirpath.html) expression of constraint that can be executed to see if this constraint is met.",
          "comment" : "In the absense of an expression, the expression is likely not enforceable by validators, and might be missed by many systems.",
          "requirements" : "Used by validation tooling tests of the validity of the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.expression",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.xpath",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode" : "trial-use"
          }],
          "path" : "ElementDefinition.constraint.xpath",
          "short" : "XPath expression of constraint",
          "definition" : "An XPath expression of constraint that can be executed to see if this constraint is met.",
          "comment" : "Elements SHALL use \"f\" as the namespace prefix for the FHIR namespace, and \"x\" for the xhtml namespace, and SHALL NOT use any other prefixes.     Note: XPath is generally considered not useful because it does not apply to JSON and other formats and because of XSLT implementation issues, and may be removed in the future.",
          "requirements" : "Used in Schematron tests of the validity of the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.xpath",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.constraint.source",
          "path" : "ElementDefinition.constraint.source",
          "short" : "Reference to original source of constraint",
          "definition" : "A reference to the original source of the constraint, for traceability purposes.",
          "comment" : "This is used when, e.g. rendering, where it is not useful to present inherited constraints when rendering the snapshot.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.constraint.source",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.mustSupport",
          "path" : "ElementDefinition.mustSupport",
          "short" : "If the element must be supported",
          "definition" : "If true, implementations that produce or consume resources SHALL provide \"support\" for the element in some meaningful way.  If false, the element may be ignored and not supported. If false, whether to populate or use the data element in any way is at the discretion of the implementation.",
          "comment" : "\"Something useful\" is context dependent and impossible to describe in the base FHIR specification. For this reason, tue mustSupport flag is never set to true by the FHIR specification itself - it is only set to true in profiles.  A profile on a type can always make musSupport = true if it is false in the base type but cannot make mustSupport = false if it is true in the base type.   This is done in [Resource Profiles](http://hl7.org/fhir/profiling.html#mustsupport), where the profile labels an element as mustSupport=true. When a profile does this, it SHALL also make clear exactly what kind of \"support\" is required, as this can mean many things.    Note that an element that has the property IsModifier is not necessarily a \"key\" element (e.g. one of the important elements to make use of the resource), nor is it automatically mustSupport - however both of these things are more likely to be true for IsModifier elements than for other elements.",
          "requirements" : "Allows a profile to set expectations for system capabilities beyond merely respecting cardinality constraints.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.mustSupport",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "In a base type, where the element is being defined for the first time, the element is assumed to be mustSupport = false. In a profile (a constraint on an existing type), if mustSupport is not specific in either the differentil or the snapshot, the mustSupport value is not changed fro the base definition. Not, though, that the snapshot SHOULD always populate the mustSuppot value",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "??"
          }]
        },
        {
          "id" : "ElementDefinition.isModifier",
          "path" : "ElementDefinition.isModifier",
          "short" : "If this modifies the meaning of other elements",
          "definition" : "If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.",
          "comment" : "Only the definition of an element can set IsModifier true - either the specification itself or where an extension is originally defined. Once set, it cannot be changed in derived profiles. An element/extension that has isModifier=true SHOULD also have a minimum cardinality of 1, so that there is no lack of clarity about what to do if it is missing. If it can be missing, the definition SHALL make the meaning of a missing element clear.",
          "requirements" : "Allows elements to be introduced into a specification that can't safely be ignored by applications that don't recognize them.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.isModifier",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "An element is not a modifier element unless it is explicitly specified to be one",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "??"
          }]
        },
        {
          "id" : "ElementDefinition.isModifierReason",
          "path" : "ElementDefinition.isModifierReason",
          "short" : "Reason that this element is marked as a modifier",
          "definition" : "Explains how that element affects the interpretation of the resource or element that contains it.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.isModifierReason",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.isSummary",
          "path" : "ElementDefinition.isSummary",
          "short" : "Include when _summary = true?",
          "definition" : "Whether the element should be included if a client requests a search with the parameter _summary=true.",
          "comment" : "Some resources include a set of simple metadata, and some very large data. This element is used to reduce the quantity of data returned in searches. Note that servers may pre-cache summarized resources for optimal performance, so servers might not support per-profile use of the isSummary flag. When a request is made with _summary=true, serailisers only include elements marked as 'isSummary = true'. Other than Attachment.data, all data type properties are included in the summary form. In resource and data type definitions, if an element is at the root or has a parent that is 'mustSupport' and the minimum cardinality is 1 or the element is a modifier, it must be marked as isSummary=true.",
          "requirements" : "Allow clients to search through large resources quickly.",
          "min" : 0,
          "max" : "0",
          "base" : {
            "path" : "ElementDefinition.isSummary",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "meaningWhenMissing" : "An element is not included in the summary unless it is explicitly specified to be so",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "??"
          }]
        },
        {
          "id" : "ElementDefinition.binding",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString" : "ElementDefinitionBinding"
          }],
          "path" : "ElementDefinition.binding",
          "short" : "ValueSet details if this is coded",
          "definition" : "Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri).",
          "comment" : "For a CodeableConcept, when no codes are allowed - only text, use a binding of strength \"required\" with a description explaining that no coded values are allowed and what sort of information to put in the \"text\" element.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.binding",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Element"
          }],
          "condition" : ["eld-11"],
          "constraint" : [{
            "key" : "eld-12",
            "severity" : "error",
            "human" : "ValueSet SHALL start with http:// or https:// or urn:",
            "expression" : "valueSet.exists() implies (valueSet.startsWith('http:') or valueSet.startsWith('https') or valueSet.startsWith('urn:'))",
            "xpath" : "(starts-with(string(f:valueSet/@value), 'http:') or starts-with(string(f:valueSet/@value), 'https:') or starts-with(string(f:valueSet/@value), 'urn:'))"
          },
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "v2",
            "map" : "OM3, OMC.11"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".domain"
          },
          {
            "identity" : "loinc",
            "map" : "ANSWER LIST, NORMATIVE ANSWER LIST"
          }]
        },
        {
          "id" : "ElementDefinition.binding.id",
          "path" : "ElementDefinition.binding.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.binding.extension",
          "path" : "ElementDefinition.binding.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.binding.strength",
          "path" : "ElementDefinition.binding.strength",
          "short" : "required | extensible | preferred | example",
          "definition" : "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.",
          "comment" : "For further discussion, see [Using Terminologies](http://hl7.org/fhir/terminologies.html).",
          "alias" : ["conformance",
          "extensibility"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.binding.strength",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "BindingStrength"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "Indication of the degree of conformance expectations associated with a binding.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/binding-strength|4.0.1"
          },
          "mapping" : [{
            "identity" : "v2",
            "map" : "N/A"
          },
          {
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "loinc",
            "map" : "N/A"
          }]
        },
        {
          "id" : "ElementDefinition.binding.description",
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean" : true
          }],
          "path" : "ElementDefinition.binding.description",
          "short" : "Human explanation of the value set",
          "definition" : "Describes the intended use of this particular set of codes.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.binding.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : ".domain.description"
          }]
        },
        {
          "id" : "ElementDefinition.binding.valueSet",
          "path" : "ElementDefinition.binding.valueSet",
          "short" : "Source of value set",
          "definition" : "Refers to the value set that identifies the set of codes the binding refers to.",
          "comment" : "The reference may be version-specific or not (e.g. have a |[version] at the end of the canonical URL).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.binding.valueSet",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "canonical",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ValueSet"]
          }],
          "condition" : ["eld-12"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "points to explicit list or expression that evaluates to list of (Enumerated_Value_Domain).member"
          },
          {
            "identity" : "dex",
            "map" : "valueDomain.valueSet"
          },
          {
            "identity" : "loinc",
            "map" : "CODE_TABLE"
          }]
        },
        {
          "id" : "ElementDefinition.mapping",
          "path" : "ElementDefinition.mapping",
          "short" : "Map element to another set of definitions",
          "definition" : "Identifies a concept from an external specification that roughly corresponds to this element.",
          "comment" : "Mappings are not necessarily specific enough for safe translation.",
          "requirements" : "Provides guidance to implementers familiar with or converting content from other specifications.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "ElementDefinition.mapping",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Element"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "Registered_item).document_reference[document_type=mapping]  Also, .meaning linkage to Data_Element_Concept is done as a mapping to a reference model.  (Data_Element_Concepts are all defined in some sort of reference model, be that Object_Class and Property or some other mechanism)"
          },
          {
            "identity" : "dex",
            "map" : "mappingSpecification"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.id",
          "path" : "ElementDefinition.mapping.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.extension",
          "path" : "ElementDefinition.mapping.extension",
          "slicing" : {
            "discriminator" : [{
              "type" : "value",
              "path" : "url"
            }],
            "description" : "Extensions are always sliced by (at least) url",
            "rules" : "open"
          },
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.identity",
          "path" : "ElementDefinition.mapping.identity",
          "short" : "Reference to mapping declaration",
          "definition" : "An internal reference to the definition of a mapping.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.mapping.identity",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "id"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.language",
          "path" : "ElementDefinition.mapping.language",
          "short" : "Computable language of mapping",
          "definition" : "Identifies the computable language in which mapping.map is expressed.",
          "comment" : "If omitted, then there can be no expectation of computational interpretation of the mapping.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.mapping.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "MimeType"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "required",
            "description" : "The mime type of an attachment. Any valid mime type is allowed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.map",
          "path" : "ElementDefinition.mapping.map",
          "short" : "Details of the mapping",
          "definition" : "Expresses what part of the target specification corresponds to this element.",
          "comment" : "For most mappings, the syntax is undefined.  Syntax will be provided for mappings to the RIM.  Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.mapping.map",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          },
          {
            "identity" : "iso11179",
            "map" : "ObjectClass, Property (this is one possible data model that can be mapped to - the uri would identify the data model  mappingSpecification.mappingScript"
          }]
        },
        {
          "id" : "ElementDefinition.mapping.comment",
          "path" : "ElementDefinition.mapping.comment",
          "short" : "Comments about the mapping or its use",
          "definition" : "Comments that provide information about the mapping or its use.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "ElementDefinition.mapping.comment",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A (MIF territory)"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "ElementDefinition",
          "path" : "ElementDefinition",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "ElementDefinition.extension:Question",
          "path" : "ElementDefinition.extension",
          "sliceName" : "Question",
          "min" : 0,
          "max" : "*",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/elementdefinition-question"]
          }]
        },
        {
          "id" : "ElementDefinition.extension:AllowedUnits",
          "path" : "ElementDefinition.extension",
          "sliceName" : "AllowedUnits",
          "min" : 0,
          "max" : "1",
          "type" : [{
            "code" : "Extension",
            "profile" : ["http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits"]
          }]
        },
        {
          "id" : "ElementDefinition.representation",
          "path" : "ElementDefinition.representation",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.slicing",
          "path" : "ElementDefinition.slicing",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.short",
          "path" : "ElementDefinition.short",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.contentReference",
          "path" : "ElementDefinition.contentReference",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.type",
          "path" : "ElementDefinition.type"
        },
        {
          "id" : "ElementDefinition.type.profile",
          "path" : "ElementDefinition.type.profile",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.type.aggregation",
          "path" : "ElementDefinition.type.aggregation",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.defaultValue[x]",
          "path" : "ElementDefinition.defaultValue[x]",
          "comment" : "...  This element should only be used on child elements of complex data elements."
        },
        {
          "id" : "ElementDefinition.meaningWhenMissing",
          "path" : "ElementDefinition.meaningWhenMissing",
          "comment" : "...  This element should only be used on child elements of complex data elements."
        },
        {
          "id" : "ElementDefinition.fixed[x]",
          "path" : "ElementDefinition.fixed[x]",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.pattern[x]",
          "path" : "ElementDefinition.pattern[x]",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.isModifier",
          "path" : "ElementDefinition.isModifier",
          "min" : 0,
          "max" : "0"
        },
        {
          "id" : "ElementDefinition.isSummary",
          "path" : "ElementDefinition.isSummary",
          "min" : 0,
          "max" : "0"
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "ehrsrle-auditevent",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "ehr"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent",
      "version" : "4.0.1",
      "name" : "EHRS FM Record Lifecycle Event - Audit Event",
      "status" : "draft",
      "experimental" : false,
      "date" : "2014-12-04",
      "publisher" : "Health Level Seven International (Electronic Health Record)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org/special/committees/ehr.html"
        }]
      }],
      "description" : "Defines the elements to be supported within the AuditEvent resource in order to conform with the Electronic Health Record System Functional Model Record Lifecycle Event standard",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "dicom",
        "uri" : "http://nema.org/dicom",
        "name" : "DICOM Tag Mapping"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "w3c.prov",
        "uri" : "http://www.w3.org/ns/prov",
        "name" : "W3C PROV"
      },
      {
        "identity" : "fhirprovenance",
        "uri" : "http://hl7.org/fhir/provenance",
        "name" : "FHIR Provenance Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "AuditEvent",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/AuditEvent",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "AuditEvent",
          "path" : "AuditEvent",
          "short" : "Event record kept for security purposes",
          "definition" : "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.",
          "comment" : "Based on IHE-ATNA.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "rim",
            "map" : "ControlAct[moodCode=EVN]"
          },
          {
            "identity" : "dicom",
            "map" : "Message"
          }]
        },
        {
          "id" : "AuditEvent.id",
          "path" : "AuditEvent.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "AuditEvent.meta",
          "path" : "AuditEvent.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "AuditEvent.implicitRules",
          "path" : "AuditEvent.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "AuditEvent.language",
          "path" : "AuditEvent.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "AuditEvent.text",
          "path" : "AuditEvent.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "AuditEvent.contained",
          "path" : "AuditEvent.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.extension",
          "path" : "AuditEvent.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.modifierExtension",
          "path" : "AuditEvent.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.type",
          "path" : "AuditEvent.type",
          "short" : "Type/identifier of event",
          "definition" : "Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function.",
          "requirements" : "This identifies the performed function. For \"Execute\" Event Action Code audit records, this identifies the application function performed.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventType"
            }],
            "strength" : "extensible",
            "description" : "Type of event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity" : "dicom",
            "map" : "EventId"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity"
          }]
        },
        {
          "id" : "AuditEvent.subtype",
          "path" : "AuditEvent.subtype",
          "short" : "More specific type/id for the event",
          "definition" : "Identifier for the category of event.",
          "requirements" : "This field enables queries of messages by implementation-defined event categories.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.subtype",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventSubType"
            }],
            "strength" : "extensible",
            "description" : "Sub-type of event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity" : "dicom",
            "map" : "EventTypeCode"
          }]
        },
        {
          "id" : "AuditEvent.action",
          "path" : "AuditEvent.action",
          "short" : "Type of action performed during the event",
          "definition" : "Indicator for type of action performed during the event that generated the audit.",
          "requirements" : "This broadly indicates what kind of action was done on the AuditEvent.entity by the AuditEvent.agent.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.action",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventAction"
            }],
            "strength" : "required",
            "description" : "Indicator for type of action performed during the event that generated the event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".code (type, subtype and action are pre-coordinated or sent as translations)"
          },
          {
            "identity" : "dicom",
            "map" : "EventActionCode"
          }]
        },
        {
          "id" : "AuditEvent.period",
          "path" : "AuditEvent.period",
          "short" : "When the activity occurred",
          "definition" : "The period during which the activity occurred.",
          "comment" : "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.period",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurred[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "rim",
            "map" : "./effectiveTime[type=IVL_TS]"
          },
          {
            "identity" : "dicom",
            "map" : "EventDateTime"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.startTime & Activity.endTime"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.occurred[x]"
          }]
        },
        {
          "id" : "AuditEvent.recorded",
          "path" : "AuditEvent.recorded",
          "short" : "Time when the event was recorded",
          "definition" : "The time when the event was recorded.",
          "comment" : "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.",
          "requirements" : "This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.recorded",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : ".effectiveTime"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.when"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.recorded"
          }]
        },
        {
          "id" : "AuditEvent.outcome",
          "path" : "AuditEvent.outcome",
          "short" : "Whether the event succeeded or failed",
          "definition" : "Indicates whether the event succeeded or failed.",
          "comment" : "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.outcome",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventOutcome"
            }],
            "strength" : "required",
            "description" : "Indicates whether the event succeeded or failed.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".actionNegationInd"
          },
          {
            "identity" : "dicom",
            "map" : "EventOutcomeIndicator"
          }]
        },
        {
          "id" : "AuditEvent.outcomeDesc",
          "path" : "AuditEvent.outcomeDesc",
          "short" : "Description of the event outcome",
          "definition" : "A free text description of the outcome of the event.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.outcomeDesc",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=OUT].target.text"
          },
          {
            "identity" : "dicom",
            "map" : "EventOutcomeDescription"
          }]
        },
        {
          "id" : "AuditEvent.purposeOfEvent",
          "path" : "AuditEvent.purposeOfEvent",
          "short" : "The purposeOfUse of the event",
          "definition" : "The purposeOfUse (reason) that was used during the event being recorded.",
          "comment" : "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.purposeOfEvent",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditPurposeOfUse"
            }],
            "strength" : "extensible",
            "description" : "The reason the activity took place.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target"
          },
          {
            "identity" : "dicom",
            "map" : "EventPurposeOfUse"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.reason, Provenance.activity"
          }]
        },
        {
          "id" : "AuditEvent.agent",
          "path" : "AuditEvent.agent",
          "short" : "Actor involved in the event",
          "definition" : "An actor taking an active role in the event or activity that is logged.",
          "comment" : "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity.",
          "requirements" : "An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility.",
          "alias" : ["ActiveParticipant"],
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.agent",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".participation"
          },
          {
            "identity" : "dicom",
            "map" : "ActiveParticipant"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.agent"
          }]
        },
        {
          "id" : "AuditEvent.agent.id",
          "path" : "AuditEvent.agent.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.agent.extension",
          "path" : "AuditEvent.agent.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.agent.modifierExtension",
          "path" : "AuditEvent.agent.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.agent.type",
          "path" : "AuditEvent.agent.type",
          "short" : "How agent participated",
          "definition" : "Specification of the participation type the user plays when performing the event.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditAgentType"
            }],
            "strength" : "extensible",
            "description" : "The Participation type of the agent to the event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/participation-role-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.function"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".typeCode and/or .functionCode"
          },
          {
            "identity" : "dicom",
            "map" : "RoleIdCode"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.agent.type"
          }]
        },
        {
          "id" : "AuditEvent.agent.role",
          "path" : "AuditEvent.agent.role",
          "short" : "Agent role in the event",
          "definition" : "The security role that the user was acting under, that come from local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.",
          "comment" : "Should be roles relevant to the event. Should  not be an exhaustive list of roles.",
          "requirements" : "This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.agent.role",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditAgentRole"
            }],
            "strength" : "example",
            "description" : "What security role enabled the agent to participate in the event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".role"
          },
          {
            "identity" : "dicom",
            "map" : "RoleIdCode"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.agent.role"
          }]
        },
        {
          "id" : "AuditEvent.agent.who",
          "path" : "AuditEvent.agent.who",
          "short" : "Identifier of who",
          "definition" : "Reference to who this agent is that was involved in the event.",
          "comment" : "Where a User ID is available it will go into who.identifier.",
          "requirements" : "This field ties an audit event to a specific resource or identifier.",
          "alias" : ["userId"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.who",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          },
          {
            "identity" : "dicom",
            "map" : "UserId"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Identity"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.agent.who"
          }]
        },
        {
          "id" : "AuditEvent.agent.altId",
          "path" : "AuditEvent.agent.altId",
          "short" : "Alternative User identity",
          "definition" : "Alternative agent Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available.",
          "requirements" : "In some situations, a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some \"single sign on\" implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.altId",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".id (distinguish id type by root)"
          },
          {
            "identity" : "dicom",
            "map" : "AlternativeUserId"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Identity"
          }]
        },
        {
          "id" : "AuditEvent.agent.name",
          "path" : "AuditEvent.agent.name",
          "short" : "Human friendly name for the agent",
          "definition" : "Human-meaningful name for the agent.",
          "requirements" : "The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : ".name"
          },
          {
            "identity" : "dicom",
            "map" : "UserName"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Identity"
          }]
        },
        {
          "id" : "AuditEvent.agent.requestor",
          "path" : "AuditEvent.agent.requestor",
          "short" : "Whether user is initiator",
          "definition" : "Indicator that the user is or is not the requestor, or initiator, for the event being audited.",
          "comment" : "There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator.",
          "requirements" : "This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.requestor",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "boolean"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : "If participation.typeCode was author, then true"
          },
          {
            "identity" : "dicom",
            "map" : "UserIsRequestor"
          }]
        },
        {
          "id" : "AuditEvent.agent.location",
          "path" : "AuditEvent.agent.location",
          "short" : "Where",
          "definition" : "Where the event occurred.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.location",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.location"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : "* Role.Class =SDLOC\n*Role.Code = ServiceDeliveryLocationRoleType\n *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC\n*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place might or might not be constant."
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.location"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.location"
          }]
        },
        {
          "id" : "AuditEvent.agent.policy",
          "path" : "AuditEvent.agent.policy",
          "short" : "Policy that authorized event",
          "definition" : "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used.",
          "comment" : "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
          "requirements" : "This value is used retrospectively to determine the authorization policies.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.agent.policy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "ActPolicyType"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantRoleIDCode"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.policy"
          }]
        },
        {
          "id" : "AuditEvent.agent.media",
          "path" : "AuditEvent.agent.media",
          "short" : "Type of media",
          "definition" : "Type of media involved. Used when the event is about exporting/importing onto media.",
          "requirements" : "Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.media",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "DICOMMediaType"
            }],
            "strength" : "extensible",
            "description" : "Used when the event is about exporting/importing onto media.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : ".player.description.mediaType"
          },
          {
            "identity" : "dicom",
            "map" : "MediaType"
          }]
        },
        {
          "id" : "AuditEvent.agent.network",
          "path" : "AuditEvent.agent.network",
          "short" : "Logical network location for application activity",
          "definition" : "Logical network location for application activity, if the activity has a network location.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.network",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : ".player.description.reference"
          }]
        },
        {
          "id" : "AuditEvent.agent.network.id",
          "path" : "AuditEvent.agent.network.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.agent.network.extension",
          "path" : "AuditEvent.agent.network.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.agent.network.modifierExtension",
          "path" : "AuditEvent.agent.network.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.agent.network.address",
          "path" : "AuditEvent.agent.network.address",
          "short" : "Identifier for the network access point of the user device",
          "definition" : "An identifier for the network access point of the user device for the audit event.",
          "comment" : "This could be a device id, IP address or some other identifier associated with a device.",
          "requirements" : "This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.network.address",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : "pre-coordinated into URL"
          },
          {
            "identity" : "dicom",
            "map" : "NetworkAccessPointID"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Location"
          }]
        },
        {
          "id" : "AuditEvent.agent.network.type",
          "path" : "AuditEvent.agent.network.type",
          "short" : "The type of network access point",
          "definition" : "An identifier for the type of network access point that originated the audit event.",
          "requirements" : "This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.agent.network.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventAgentNetworkType"
            }],
            "strength" : "required",
            "description" : "The type of network access point of this agent in the audit event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/network-type|4.0.1"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : "pre-coordinated into URL"
          },
          {
            "identity" : "dicom",
            "map" : "NetworkAccessPointTypeCode"
          }]
        },
        {
          "id" : "AuditEvent.agent.purposeOfUse",
          "path" : "AuditEvent.agent.purposeOfUse",
          "short" : "Reason given for this user",
          "definition" : "The reason (purpose of use), specific to this agent, that was used during the event being recorded.",
          "comment" : "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.agent.purposeOfUse",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditPurposeOfUse"
            }],
            "strength" : "extensible",
            "description" : "The reason the activity took place.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse\n(2.16.840.1.113883.1.11.20448)\n* .outboundRelationship[typeCode=RSON or SUBJ].target"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Activity"
          }]
        },
        {
          "id" : "AuditEvent.source",
          "path" : "AuditEvent.source",
          "short" : "Audit Event Reporter",
          "definition" : "The system that is reporting the event.",
          "comment" : "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified.",
          "requirements" : "The event is reported by one source.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.source",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]"
          },
          {
            "identity" : "dicom",
            "map" : "AuditSourceIdentification"
          }]
        },
        {
          "id" : "AuditEvent.source.id",
          "path" : "AuditEvent.source.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.source.extension",
          "path" : "AuditEvent.source.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.source.modifierExtension",
          "path" : "AuditEvent.source.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.source.site",
          "path" : "AuditEvent.source.site",
          "short" : "Logical source location within the enterprise",
          "definition" : "Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group.",
          "requirements" : "This value differentiates among the sites in a multi-site enterprise health information system.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.source.site",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".scopedRole[classCode=LOCE].player.desc"
          },
          {
            "identity" : "dicom",
            "map" : "AuditEnterpriseSiteId"
          }]
        },
        {
          "id" : "AuditEvent.source.observer",
          "path" : "AuditEvent.source.observer",
          "short" : "The identity of source detecting the event",
          "definition" : "Identifier of the source where the event was detected.",
          "requirements" : "This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected.",
          "alias" : ["SourceId"],
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.source.observer",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/Organization",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          },
          {
            "identity" : "dicom",
            "map" : "AuditSourceId"
          }]
        },
        {
          "id" : "AuditEvent.source.type",
          "path" : "AuditEvent.source.type",
          "short" : "The type of source where event originated",
          "definition" : "Code specifying the type of source where event originated.",
          "requirements" : "This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.source.type",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventSourceType"
            }],
            "strength" : "extensible",
            "description" : "Code specifying the type of system that detected and recorded the event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-source-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.witness"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "dicom",
            "map" : "AuditSourceTypeCode"
          }]
        },
        {
          "id" : "AuditEvent.entity",
          "path" : "AuditEvent.entity",
          "short" : "Data or objects used",
          "definition" : "Specific instances of data or objects that have been accessed.",
          "comment" : "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values.",
          "requirements" : "The event may have other entities involved.",
          "alias" : ["ParticipantObject"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.entity",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "sev-1",
            "severity" : "error",
            "human" : "Either a name or a query (NOT both)",
            "expression" : "name.empty() or query.empty()",
            "xpath" : "not(exists(f:name)) or not(exists(f:query))",
            "source" : "http://hl7.org/fhir/StructureDefinition/AuditEvent"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectIdentification"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.target, Provenance.entity"
          }]
        },
        {
          "id" : "AuditEvent.entity.id",
          "path" : "AuditEvent.entity.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.entity.extension",
          "path" : "AuditEvent.entity.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.entity.modifierExtension",
          "path" : "AuditEvent.entity.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.entity.what",
          "path" : "AuditEvent.entity.what",
          "short" : "Specific instance of resource",
          "definition" : "Identifies a specific instance of the entity. The reference should be version specific.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.what",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectID and ParticipantObjectIDTypeCode"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.target, Provenance.entity.what"
          }]
        },
        {
          "id" : "AuditEvent.entity.type",
          "path" : "AuditEvent.entity.type",
          "short" : "Type of entity involved",
          "definition" : "The type of the object that was involved in this audit event.",
          "comment" : "This value is distinct from the user's role or any user relationship to the entity.",
          "requirements" : "To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventEntityType"
            }],
            "strength" : "extensible",
            "description" : "Code for the entity type involved in the audit event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/audit-entity-type"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : "[self::Act].code or role.player.code"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectTypeCode"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.type"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.entity.type"
          }]
        },
        {
          "id" : "AuditEvent.entity.role",
          "path" : "AuditEvent.entity.role",
          "short" : "What role the entity played",
          "definition" : "Code representing the role the entity played in the event being audited.",
          "requirements" : "For some detailed audit analysis it may be necessary to indicate a more granular type of entity, based on the application role it serves.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.role",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventEntityRole"
            }],
            "strength" : "extensible",
            "description" : "Code representing the role the entity played in the audit event.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/object-role"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : "role.code (not sure what this would mean for an Act)"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectTypeCodeRole"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.role"
          }]
        },
        {
          "id" : "AuditEvent.entity.lifecycle",
          "path" : "AuditEvent.entity.lifecycle",
          "short" : "Life-cycle stage for the entity",
          "definition" : "Identifier for the data life-cycle stage for the entity.",
          "comment" : "This can be used to provide an audit trail for data, over time, as it passes through the system.",
          "requirements" : "Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.lifecycle",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "AuditEventEntityLifecycle"
            }],
            "strength" : "extensible",
            "description" : "Identifier for the data life-cycle stage for the entity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/object-lifecycle-events"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : "target of ObservationEvent[code=\"lifecycle\"].value"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectDataLifeCycle"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.role"
          },
          {
            "identity" : "fhirprovenance",
            "map" : "Provenance.entity.role"
          }]
        },
        {
          "id" : "AuditEvent.entity.securityLabel",
          "path" : "AuditEvent.entity.securityLabel",
          "short" : "Security labels on the entity",
          "definition" : "Security labels for the identified entity.",
          "comment" : "Copied from entity meta security tags.",
          "requirements" : "This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.entity.securityLabel",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Coding"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "SecurityLabels"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "extensible",
            "description" : "Security Labels from the Healthcare Privacy and Security Classification System.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/security-labels"
          },
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".confidentialityCode"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectSensitivity"
          }]
        },
        {
          "id" : "AuditEvent.entity.name",
          "path" : "AuditEvent.entity.name",
          "short" : "Descriptor for entity",
          "definition" : "A name of the entity in the audit event.",
          "comment" : "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used.",
          "requirements" : "Use only where entity can't be identified with an identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.name",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "condition" : ["sev-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".title"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectName"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.Label"
          }]
        },
        {
          "id" : "AuditEvent.entity.description",
          "path" : "AuditEvent.entity.description",
          "short" : "Descriptive text",
          "definition" : "Text that describes the entity in more detail.",
          "requirements" : "Use only where entity can't be identified with an identifier.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.description",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".text"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectDescription"
          }]
        },
        {
          "id" : "AuditEvent.entity.query",
          "path" : "AuditEvent.entity.query",
          "short" : "Query parameters",
          "definition" : "The query parameters for a query-type entities.",
          "comment" : "The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
          "requirements" : "For query events, it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.query",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "base64Binary"
          }],
          "condition" : ["sev-1"],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : "No mapping"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectQuery"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail",
          "path" : "AuditEvent.entity.detail",
          "short" : "Additional Information about the entity",
          "definition" : "Tagged value pairs for conveying additional information about the entity.",
          "requirements" : "Implementation-defined data about specific details of the object accessed or used.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "AuditEvent.entity.detail",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectDetail"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail.id",
          "path" : "AuditEvent.entity.detail.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail.extension",
          "path" : "AuditEvent.entity.detail.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail.modifierExtension",
          "path" : "AuditEvent.entity.detail.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail.type",
          "path" : "AuditEvent.entity.detail.type",
          "short" : "Name of the property",
          "definition" : "The type of extra detail provided in the value.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.detail.type",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".code"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectDetail.type"
          }]
        },
        {
          "id" : "AuditEvent.entity.detail.value[x]",
          "path" : "AuditEvent.entity.detail.value[x]",
          "short" : "Property value",
          "definition" : "The  value of the extra detail.",
          "comment" : "The value can be string when known to be a string, else base64 encoding should be used to protect binary or undefined content.  The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
          "requirements" : "Should not duplicate the entity value unless absolutely necessary.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "AuditEvent.entity.detail.value[x]",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "string"
          },
          {
            "code" : "base64Binary"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.context"
          },
          {
            "identity" : "rim",
            "map" : ".value"
          },
          {
            "identity" : "dicom",
            "map" : "ParticipantObjectDetail.value"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "AuditEvent",
          "path" : "AuditEvent",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "AuditEvent.type",
          "path" : "AuditEvent.type",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.subtype",
          "path" : "AuditEvent.subtype",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.action",
          "path" : "AuditEvent.action",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.recorded",
          "path" : "AuditEvent.recorded",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.purposeOfEvent",
          "path" : "AuditEvent.purposeOfEvent",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent",
          "path" : "AuditEvent.agent",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.role",
          "path" : "AuditEvent.agent.role",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.who",
          "path" : "AuditEvent.agent.who",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.requestor",
          "path" : "AuditEvent.agent.requestor",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.location",
          "path" : "AuditEvent.agent.location",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.policy",
          "path" : "AuditEvent.agent.policy",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.network",
          "path" : "AuditEvent.agent.network",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.network.address",
          "path" : "AuditEvent.agent.network.address",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.network.type",
          "path" : "AuditEvent.agent.network.type",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.agent.purposeOfUse",
          "path" : "AuditEvent.agent.purposeOfUse",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.source",
          "path" : "AuditEvent.source",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.source.site",
          "path" : "AuditEvent.source.site",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.source.observer",
          "path" : "AuditEvent.source.observer",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.source.type",
          "path" : "AuditEvent.source.type",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity",
          "path" : "AuditEvent.entity",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity.what",
          "path" : "AuditEvent.entity.what",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity.type",
          "path" : "AuditEvent.entity.type",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity.role",
          "path" : "AuditEvent.entity.role",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity.lifecycle",
          "path" : "AuditEvent.entity.lifecycle",
          "mustSupport" : true
        },
        {
          "id" : "AuditEvent.entity.securityLabel",
          "path" : "AuditEvent.entity.securityLabel",
          "mustSupport" : true
        }]
      }
    }
  },
  {
    "fullUrl" : "http://hl7.org/fhir/StructureDefinition/ehrsrle-provenance",
    "resource" : {
      "resourceType" : "StructureDefinition",
      "id" : "ehrsrle-provenance",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
        "valueCode" : "ehr"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode" : "trial-use"
      }],
      "url" : "http://hl7.org/fhir/StructureDefinition/ehrsrle-provenance",
      "version" : "4.0.1",
      "name" : "EHRS FM Record Lifecycle Event - Provenance",
      "status" : "draft",
      "experimental" : false,
      "date" : "2014-01-31",
      "publisher" : "Health Level Seven International (Electronic Health Record)",
      "contact" : [{
        "telecom" : [{
          "system" : "url",
          "value" : "http://hl7.org/special/committees/ehr.html"
        }]
      }],
      "description" : "Defines the elements to be supported within the Provenance resource in order to conform with the Electronic Health Record System Functional Model Record Lifecycle Event standard",
      "fhirVersion" : "4.0.1",
      "mapping" : [{
        "identity" : "workflow",
        "uri" : "http://hl7.org/fhir/workflow",
        "name" : "Workflow Pattern"
      },
      {
        "identity" : "rim",
        "uri" : "http://hl7.org/v3",
        "name" : "RIM Mapping"
      },
      {
        "identity" : "w3c.prov",
        "uri" : "http://www.w3.org/ns/prov",
        "name" : "W3C PROV"
      },
      {
        "identity" : "w5",
        "uri" : "http://hl7.org/fhir/fivews",
        "name" : "FiveWs Pattern Mapping"
      },
      {
        "identity" : "fhirauditevent",
        "uri" : "http://hl7.org/fhir/auditevent",
        "name" : "FHIR AuditEvent Mapping"
      }],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Provenance",
      "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Provenance",
      "derivation" : "constraint",
      "snapshot" : {
        "element" : [{
          "id" : "Provenance",
          "path" : "Provenance",
          "short" : "Who, What, When for a set of resources",
          "definition" : "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies.",
          "comment" : "Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.",
          "alias" : ["History",
          "Event",
          "Activity"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance",
            "min" : 0,
            "max" : "*"
          },
          "constraint" : [{
            "key" : "dom-2",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression" : "contained.contained.empty()",
            "xpath" : "not(parent::f:contained and f:contained)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-3",
            "severity" : "error",
            "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath" : "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-4",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key" : "dom-5",
            "severity" : "error",
            "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression" : "contained.meta.security.empty()",
            "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
              "valueBoolean" : true
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
              "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
            }],
            "key" : "dom-6",
            "severity" : "warning",
            "human" : "A resource should have narrative for robust management",
            "expression" : "text.`div`.exists()",
            "xpath" : "exists(f:text/h:div)",
            "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Entity. Role, or Act"
          },
          {
            "identity" : "workflow",
            "map" : "Event"
          },
          {
            "identity" : "rim",
            "map" : "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity"
          }]
        },
        {
          "id" : "Provenance.id",
          "path" : "Provenance.id",
          "short" : "Logical id of this artifact",
          "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
          "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Provenance.meta",
          "path" : "Provenance.meta",
          "short" : "Metadata about the resource",
          "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.meta",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Meta"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true
        },
        {
          "id" : "Provenance.implicitRules",
          "path" : "Provenance.implicitRules",
          "short" : "A set of rules under which this content was created",
          "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
          "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.implicitRules",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : true,
          "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
          "isSummary" : true
        },
        {
          "id" : "Provenance.language",
          "path" : "Provenance.language",
          "short" : "Language of the resource content",
          "definition" : "The base language in which the resource is written.",
          "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Resource.language",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "Language"
            },
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean" : true
            }],
            "strength" : "preferred",
            "description" : "A human language.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
          }
        },
        {
          "id" : "Provenance.text",
          "path" : "Provenance.text",
          "short" : "Text summary of the resource, for human interpretation",
          "definition" : "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
          "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
          "alias" : ["narrative",
          "html",
          "xhtml",
          "display"],
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "DomainResource.text",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Narrative"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Act.text?"
          }]
        },
        {
          "id" : "Provenance.contained",
          "path" : "Provenance.contained",
          "short" : "Contained, inline Resources",
          "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
          "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
          "alias" : ["inline resources",
          "anonymous resources",
          "contained resources"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.contained",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Resource"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.extension",
          "path" : "Provenance.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.modifierExtension",
          "path" : "Provenance.modifierExtension",
          "short" : "Extensions that cannot be ignored",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "DomainResource.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.target",
          "path" : "Provenance.target",
          "short" : "Target Reference(s) (usually version specific)",
          "definition" : "The Reference(s) that were generated or updated by  the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity.",
          "comment" : "Target references are usually version specific, but might not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource might not be known (especially not the version specific one); the client may either submit the resource first, and then the provenance, or it may submit both using a single transaction. See the notes on transaction for further discussion.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Provenance.target",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.what[x]"
          },
          {
            "identity" : "rim",
            "map" : "./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.reference"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity Created/Updated"
          }]
        },
        {
          "id" : "Provenance.occurred[x]",
          "path" : "Provenance.occurred[x]",
          "short" : "When the activity occurred",
          "definition" : "The period during which the activity occurred.",
          "comment" : "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.occurred[x]",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Period"
          },
          {
            "code" : "dateTime"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.occurred[x]"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.done[x]"
          },
          {
            "identity" : "rim",
            "map" : "./effectiveTime[type=IVL_TS]"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.startTime & Activity.endTime"
          }]
        },
        {
          "id" : "Provenance.recorded",
          "path" : "Provenance.recorded",
          "short" : "When the activity was recorded / updated",
          "definition" : "The instant of time at which the activity was recorded.",
          "comment" : "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.recorded",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "instant"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "w5",
            "map" : "FiveWs.recorded"
          },
          {
            "identity" : "rim",
            "map" : "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.recorded"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.when"
          }]
        },
        {
          "id" : "Provenance.policy",
          "path" : "Provenance.policy",
          "short" : "Policy or plan the activity was defined by",
          "definition" : "Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.",
          "comment" : "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.policy",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "uri"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.policy"
          }]
        },
        {
          "id" : "Provenance.location",
          "path" : "Provenance.location",
          "short" : "Where the activity occurred, if relevant",
          "definition" : "Where the activity occurred, if relevant.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.location",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.location"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.where[x]"
          },
          {
            "identity" : "rim",
            "map" : "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.location"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.location"
          }]
        },
        {
          "id" : "Provenance.reason",
          "path" : "Provenance.reason",
          "short" : "Reason the activity is occurring",
          "definition" : "The reason that the activity was taking place.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.reason",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceReason"
            }],
            "strength" : "extensible",
            "description" : "The reason the activity took place.",
            "valueSet" : "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.reasonCode"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "unique(./reasonCode)"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.purposeOfEvent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          }]
        },
        {
          "id" : "Provenance.activity",
          "path" : "Provenance.activity",
          "short" : "Activity that occurred",
          "definition" : "An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.activity",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceActivity"
            }],
            "strength" : "extensible",
            "description" : "The activity that took place.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-activity-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.code"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.why[x]"
          },
          {
            "identity" : "rim",
            "map" : "Act.code"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Activity.Activity"
          }]
        },
        {
          "id" : "Provenance.agent",
          "path" : "Provenance.agent",
          "short" : "Actor involved",
          "definition" : "An actor taking a role in an activity  for which it can be assigned some degree of responsibility for the activity taking place.",
          "comment" : "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
          "requirements" : "An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility.",
          "min" : 1,
          "max" : "*",
          "base" : {
            "path" : "Provenance.agent",
            "min" : 1,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.who"
          },
          {
            "identity" : "rim",
            "map" : "./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent"
          }]
        },
        {
          "id" : "Provenance.agent.id",
          "path" : "Provenance.agent.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent.extension",
          "path" : "Provenance.agent.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.agent.modifierExtension",
          "path" : "Provenance.agent.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.agent.type",
          "path" : "Provenance.agent.type",
          "short" : "How the agent participated",
          "definition" : "The participation the agent had with respect to the activity.",
          "comment" : "For example: author, performer, enterer, attester, etc.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.type",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentType"
            }],
            "strength" : "extensible",
            "description" : "The type of participation that a provenance agent played with respect to the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-agent-type"
          },
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.function"
          },
          {
            "identity" : "rim",
            "map" : ".role"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.type"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Agent.Attribution"
          }]
        },
        {
          "id" : "Provenance.agent.role",
          "path" : "Provenance.agent.role",
          "short" : "What the agents role was",
          "definition" : "The function of the agent with respect to the activity. The security role enabling the agent with respect to the activity.",
          "comment" : "For example: doctor, nurse, clerk, etc.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.agent.role",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "CodeableConcept"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceAgentRole"
            }],
            "strength" : "example",
            "description" : "The role that a provenance agent played with respect to the activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/security-role-type"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : ".typecode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.agent.role"
          }]
        },
        {
          "id" : "Provenance.agent.who",
          "path" : "Provenance.agent.who",
          "short" : "Who participated",
          "definition" : "The individual, device or organization that participated in the event.",
          "comment" : "whoIdentity should be used when the agent is not a Resource type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.who",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "workflow",
            "map" : "Event.performer.actor"
          },
          {
            "identity" : "w5",
            "map" : "FiveWs.actor"
          },
          {
            "identity" : "rim",
            "map" : ".id"
          }]
        },
        {
          "id" : "Provenance.agent.onBehalfOf",
          "path" : "Provenance.agent.onBehalfOf",
          "short" : "Who the agent is representing",
          "definition" : "The individual, device, or organization for whom the change was made.",
          "comment" : "onBehalfOfIdentity should be used when the agent is not a Resource type.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Provenance.agent.onBehalfOf",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
            "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
            "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "http://hl7.org/fhir/StructureDefinition/Patient",
            "http://hl7.org/fhir/StructureDefinition/Device",
            "http://hl7.org/fhir/StructureDefinition/Organization"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]"
          }]
        },
        {
          "id" : "Provenance.entity",
          "path" : "Provenance.entity",
          "short" : "An entity used in this activity",
          "definition" : "An entity used in this activity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.entity",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "BackboneElement"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./subjectOf"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity"
          }]
        },
        {
          "id" : "Provenance.entity.id",
          "path" : "Provenance.entity.id",
          "representation" : ["xmlAttr"],
          "short" : "Unique id for inter-element referencing",
          "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
          "min" : 0,
          "max" : "1",
          "base" : {
            "path" : "Element.id",
            "min" : 0,
            "max" : "1"
          },
          "type" : [{
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
              "valueUrl" : "string"
            }],
            "code" : "http://hl7.org/fhirpath/System.String"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.entity.extension",
          "path" : "Provenance.entity.extension",
          "short" : "Additional content defined by implementations",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "alias" : ["extensions",
          "user content"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Element.extension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "n/a"
          }]
        },
        {
          "id" : "Provenance.entity.modifierExtension",
          "path" : "Provenance.entity.modifierExtension",
          "short" : "Extensions that cannot be ignored even if unrecognized",
          "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
          "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
          "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).",
          "alias" : ["extensions",
          "user content",
          "modifiers"],
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "BackboneElement.modifierExtension",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Extension"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }],
          "isModifier" : true,
          "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "N/A"
          }]
        },
        {
          "id" : "Provenance.entity.role",
          "path" : "Provenance.entity.role",
          "short" : "derivation | revision | quotation | source | removal",
          "definition" : "How the entity was used during the activity.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.entity.role",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "code"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "binding" : {
            "extension" : [{
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString" : "ProvenanceEntityRole"
            }],
            "strength" : "required",
            "description" : "How an entity was used in an activity.",
            "valueSet" : "http://hl7.org/fhir/ValueSet/provenance-entity-role|4.0.1"
          },
          "mapping" : [{
            "identity" : "rim",
            "map" : "./typeCode"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.lifecycle"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.role"
          }]
        },
        {
          "id" : "Provenance.entity.what",
          "path" : "Provenance.entity.what",
          "short" : "Identity of entity",
          "definition" : "Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative.",
          "comment" : "whatIdentity should be used for entities that are not a Resource type.",
          "min" : 1,
          "max" : "1",
          "base" : {
            "path" : "Provenance.entity.what",
            "min" : 1,
            "max" : "1"
          },
          "type" : [{
            "code" : "Reference",
            "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : true,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./text/reference"
          },
          {
            "identity" : "fhirauditevent",
            "map" : "AuditEvent.entity.reference"
          },
          {
            "identity" : "w3c.prov",
            "map" : "Entity.Identity"
          }]
        },
        {
          "id" : "Provenance.entity.agent",
          "path" : "Provenance.entity.agent",
          "short" : "Entity is attributed to this agent",
          "definition" : "The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity.",
          "comment" : "A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.entity.agent",
            "min" : 0,
            "max" : "*"
          },
          "contentReference" : "#Provenance.agent",
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./author/role"
          }]
        },
        {
          "id" : "Provenance.signature",
          "path" : "Provenance.signature",
          "short" : "Signature on target",
          "definition" : "A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.",
          "min" : 0,
          "max" : "*",
          "base" : {
            "path" : "Provenance.signature",
            "min" : 0,
            "max" : "*"
          },
          "type" : [{
            "code" : "Signature"
          }],
          "constraint" : [{
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "xpath" : "@value|f:*|h:div",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }],
          "mustSupport" : true,
          "isModifier" : false,
          "isSummary" : false,
          "mapping" : [{
            "identity" : "rim",
            "map" : "./signatureText"
          }]
        }]
      },
      "differential" : {
        "element" : [{
          "id" : "Provenance",
          "path" : "Provenance",
          "min" : 0,
          "max" : "*"
        },
        {
          "id" : "Provenance.target",
          "path" : "Provenance.target",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.occurred[x]",
          "path" : "Provenance.occurred[x]",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.recorded",
          "path" : "Provenance.recorded",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.policy",
          "path" : "Provenance.policy",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.location",
          "path" : "Provenance.location",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.reason",
          "path" : "Provenance.reason",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.activity",
          "path" : "Provenance.activity",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent",
          "path" : "Provenance.agent",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent.who",
          "path" : "Provenance.agent.who",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.agent.onBehalfOf",
          "path" : "Provenance.agent.onBehalfOf",
          "mustSupport" : true
        },
        {
          "id" : "Provenance.signature",
          "path" : "Provenance.signature",
          "mustSupport" : true
        }]
      }
    }
  }]
}